svn commit: samba r5975 - in branches/SAMBA_3_0/source/libsmb: .

jra at samba.org jra at samba.org
Tue Mar 22 22:04:02 GMT 2005


Author: jra
Date: 2005-03-22 22:04:01 +0000 (Tue, 22 Mar 2005)
New Revision: 5975

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=5975

Log:
Re-arrange code and comments to make more sense.
Jeremy.

Modified:
   branches/SAMBA_3_0/source/libsmb/clilist.c


Changeset:
Modified: branches/SAMBA_3_0/source/libsmb/clilist.c
===================================================================
--- branches/SAMBA_3_0/source/libsmb/clilist.c	2005-03-22 22:03:56 UTC (rev 5974)
+++ branches/SAMBA_3_0/source/libsmb/clilist.c	2005-03-22 22:04:01 UTC (rev 5975)
@@ -270,18 +270,6 @@
 		p = rdata;
 
 		/* we might need the lastname for continuations */
- 
-		/* and add them to the dirlist pool */
-		tdl = SMB_REALLOC(dirlist,dirlist_len + data_len);
-
-		if (!tdl) {
-			DEBUG(0,("cli_list_new: Failed to expand dirlist\n"));
-			break;
-		} else {
-			dirlist = tdl;
-		}
-
-		/* we might need the lastname for continuations */
 		for (p2=p,i=0;i<ff_searchcount;i++) {
 			p2 += interpret_long_filename(cli,info_level,p2,&finfo);
 		}
@@ -293,6 +281,16 @@
 		}
 
 		/* grab the data for later use */
+		/* and add them to the dirlist pool */
+		tdl = SMB_REALLOC(dirlist,dirlist_len + data_len);
+
+		if (!tdl) {
+			DEBUG(0,("cli_list_new: Failed to expand dirlist\n"));
+			break;
+		} else {
+			dirlist = tdl;
+		}
+
 		memcpy(dirlist+dirlist_len,p,data_len);
 		dirlist_len += data_len;
 



More information about the samba-cvs mailing list