s3-lib/util: fix logic inside set_namearray loops.
commitaa8207302488d13db17d56884c619ac03442c1ca
authorJeremy Allison <jra@samba.org>
Tue, 8 Apr 2014 17:38:33 +0000 (8 10:38 -0700)
committerKarolin Seeger <kseeger@samba.org>
Tue, 29 Apr 2014 08:21:10 +0000 (29 10:21 +0200)
tree90aaa04340e49c1b8e17e8a28dac61e0b94a5264
parent9dbafdc0bfb10b386415c304727fd64e9c35c956
s3-lib/util: fix logic inside set_namearray loops.

Additional fix for bug #10544 - s3-lib/util: set_namearray reads across end of namelist string.

Not strictly needed as the initial fix addresses
the problem, but corrects the internal logic
inside the loops.

https://bugzilla.samba.org/show_bug.cgi?id=10544

Signed-off-by: Jeremy Allison <jra@samba.org>
Signed-off-by: Michael Adam <obnox@samba.org>
(cherry picked from commit 4f59580331b934b183c3344da57f2002d88d4512)
source3/lib/util.c