s3:libsmb: don't call cli_set_error() in cli_echo()
authorStefan Metzmacher <metze@samba.org>
Fri, 8 Jul 2011 08:27:41 +0000 (10:27 +0200)
committerStefan Metzmacher <metze@samba.org>
Fri, 8 Jul 2011 12:09:09 +0000 (14:09 +0200)
cli_smb_recv() already does it.

metze

source3/libsmb/clientgen.c

index 41f5cb59399722d67af2ee4b7c362fa5ab75c225..676e48205e0359b3fe78e00a58a19ddc720b1485 100644 (file)
@@ -509,9 +509,6 @@ NTSTATUS cli_echo(struct cli_state *cli, uint16_t num_echos, DATA_BLOB data)
        status = cli_echo_recv(req);
  fail:
        TALLOC_FREE(frame);
-       if (!NT_STATUS_IS_OK(status)) {
-               cli_set_error(cli, status);
-       }
        return status;
 }