s3-lib/util: fix logic inside set_namearray loops.
commit4f59580331b934b183c3344da57f2002d88d4512
authorJeremy Allison <jra@samba.org>
Tue, 8 Apr 2014 17:38:33 +0000 (8 10:38 -0700)
committerJeremy Allison <jra@samba.org>
Tue, 8 Apr 2014 23:29:07 +0000 (9 01:29 +0200)
treeeae6e477a09c99782be998d0c46111106b01d9b5
parent8f46b130c5c796d66d26982f5cd99c52f7c8ece1
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>
source3/lib/util.c