s3: Fix a crash in libsmbclient used against the OpenSolaris CIFS server
commit04922a546878687f6684b403f4fd250c03033e9d
authorVolker Lendecke <vl@samba.org>
Sat, 16 Jan 2010 12:31:44 +0000 (16 13:31 +0100)
committerKarolin Seeger <kseeger@samba.org>
Mon, 18 Jan 2010 11:33:10 +0000 (18 12:33 +0100)
tree9c7298f2fde2b299163dfe5f02e1ae4db3c50a8d
parent724d6423c961e01745128dbc58c7946f1e36b043
s3: Fix a crash in libsmbclient used against the OpenSolaris CIFS server

A user has sent me a sniff where the OpenSolaris CIFS server returns "32" in
totalentries, but the array in ctr only contains 15 entries. Look at the right
delimiter for walking the array.

Fix bug #7046 (libsmbclient crash against OpenSolaris CIFS server).
(cherry picked from commit 734446bb3a8984ec805c73e06e553312b46e4094)
source3/libsmb/libsmb_dir.c