s3-lib/util: fix logic inside set_namearray loops.
commitf0d41fbc7295de4e31229704b255ca1db7f761f8
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:20:03 +0000 (29 10:20 +0200)
tree112d33f44fa33976987c1adf9e8abfd1b39d92aa
parent9057b426d232638dcb1374724023aa95f4e86081
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