use cli_list_old() when negotiating the older protocols
authorAndrew Tridgell <tridge@samba.org>
Sun, 25 Feb 2001 23:46:28 +0000 (23:46 +0000)
committerAndrew Tridgell <tridge@samba.org>
Sun, 25 Feb 2001 23:46:28 +0000 (23:46 +0000)
source/libsmb/clilist.c

index d4cc00d9f3bee2aebddca2993783ef60b0926f8b..c30f69a36cd6dd94750c7234bb00a245f4504c01 100644 (file)
@@ -178,6 +178,10 @@ int cli_list(struct cli_state *cli,const char *Mask,uint16 attribute,
        int param_len, data_len;        
        uint16 setup;
        pstring param;
+
+       if (cli->protocol <= PROTOCOL_LANMAN1) {
+               return cli_list_old(cli, Mask, attribute, fn, state);
+       }
        
        pstrcpy(mask,Mask);