r16541: Fix #3862 reported by jason@ncac.gwu.edu.
authorJeremy Allison <jra@samba.org>
Tue, 27 Jun 2006 00:15:00 +0000 (00:15 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:18:58 +0000 (11:18 -0500)
Jeremy.
(This used to be commit 09e11dcb2304eec9656e76c24921c82f4a870914)

source3/libsmb/clilist.c

index 9ab05d2b4afb2cab8f651c2f84451d57cfba04ea..e18bb185d563a34dae968f3c68170497dd6883bb 100644 (file)
@@ -185,7 +185,6 @@ int cli_list_new(struct cli_state *cli,const char *Mask,uint16 attribute,
        BOOL First = True;
        int ff_searchcount=0;
        int ff_eos=0;
-       int ff_lastname=0;
        int ff_dir_handle=0;
        int loop_count = 0;
        char *rparam=NULL, *rdata=NULL;
@@ -297,11 +296,9 @@ int cli_list_new(struct cli_state *cli,const char *Mask,uint16 attribute,
                        ff_dir_handle = SVAL(p,0);
                        ff_searchcount = SVAL(p,2);
                        ff_eos = SVAL(p,4);
-                       ff_lastname = SVAL(p,8);
                } else {
                        ff_searchcount = SVAL(p,0);
                        ff_eos = SVAL(p,2);
-                       ff_lastname = SVAL(p,6);
                }
 
                if (ff_searchcount == 0) {