More bug fixen ...
authorRichard Sharpe <sharpe@samba.org>
Sun, 7 Jan 2001 13:07:26 +0000 (13:07 +0000)
committerRichard Sharpe <sharpe@samba.org>
Sun, 7 Jan 2001 13:07:26 +0000 (13:07 +0000)
(This used to be commit a13b5ef7bba86d42df98b4f493aa2ea9e1caa6c3)

source3/libsmb/libsmbclient.c

index 5c6360354e5d1d4459d0c6be2509d06848e6406f..2cbc66986ea0a3163b74afb82a01e6aeecdbe5f0 100644 (file)
@@ -1252,7 +1252,7 @@ static int add_dirent(struct smbc_file *dir, const char *name, const char *comme
     }
 
     dir->dir_end = dir->dir_next = dir->dir_list;
-
+  
   }
   else {
 
@@ -1267,10 +1267,10 @@ static int add_dirent(struct smbc_file *dir, const char *name, const char *comme
     }
 
     dir->dir_end = dir->dir_end->next;
-    dir->dir_end->next = NULL;
 
   }
 
+  dir->dir_end->next = NULL;
   dir->dir_end->dirent = dirent;
 
   dirent->smbc_type = type;