ERRmoredata is an acceptable error code, it is not an error.
authorLuke Leighton <lkcl@samba.org>
Wed, 2 Dec 1998 20:03:08 +0000 (20:03 +0000)
committerLuke Leighton <lkcl@samba.org>
Wed, 2 Dec 1998 20:03:08 +0000 (20:03 +0000)
(This used to be commit 9bce7340d60a49594f67cc3c6cc6119b33a5358a)

source3/libsmb/clientgen.c

index 5f6408bad184b2fde385f592aaf4ea3c9d318a10..99d868e216a8b6fc45a7e42b5a54c29083c6cb42 100644 (file)
@@ -328,6 +328,8 @@ static BOOL cli_receive_trans(struct cli_state *cli,int trans,
        int total_data=0;
        int total_param=0;
        int this_data,this_param;
+       uint8 eclass;
+       uint32 num;
        
        *data_len = *param_len = 0;
 
@@ -342,7 +344,8 @@ static BOOL cli_receive_trans(struct cli_state *cli,int trans,
                return(False);
        }
 
-       if (cli_error(cli, NULL, NULL))
+       /* DOS error "more data" is an acceptable error code */
+       if (cli_error(cli, &eclass, &num) && eclass != ERRDOS && num != ERRmoredata)
        {
                return(False);
        }
@@ -393,7 +396,8 @@ static BOOL cli_receive_trans(struct cli_state *cli,int trans,
                                 CVAL(cli->inbuf,smb_com)));
                        return(False);
                }
-               if (cli_error(cli, NULL, NULL))
+               /* DOS error "more data" is an acceptable error code */
+               if (cli_error(cli, &eclass, &num) && eclass != ERRDOS && num != ERRmoredata)
                {
                        return(False);
                }