s3: Fix a crash in libsmbclient used against the OpenSolaris CIFS server
authorVolker Lendecke <vl@samba.org>
Sat, 16 Jan 2010 12:31:44 +0000 (13:31 +0100)
committerKarolin Seeger <kseeger@samba.org>
Wed, 24 Feb 2010 15:25:09 +0000 (16:25 +0100)
commit57849c31b9bc4b1ceb0dac63306481e7b50ab161
tree93c193af94fb01a2d83a66557d4fcc77a923f979
parentb990e6614f462edb4a00f8ea5665f244a3c9ac40
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 1d611028433db18e96d946b206a8eed1048f9b26)
source/libsmb/libsmb_dir.c