s3: Fix an error case in cli_negprot
authorVolker Lendecke <vl@samba.org>
Sun, 20 Dec 2009 22:29:32 +0000 (23:29 +0100)
committerVolker Lendecke <vl@samba.org>
Sun, 20 Dec 2009 22:30:43 +0000 (23:30 +0100)
source3/libsmb/cliconnect.c

index 112143ca9661a4f73a71277d0dc39b4b4c076da3..715ea913822ed50382acee7a7325f4731baa76c4 100644 (file)
@@ -1671,6 +1671,7 @@ static void cli_negprot_done(struct tevent_req *subreq)
        status = cli_smb_recv(subreq, 1, &wct, &vwv, &num_bytes, &bytes);
        if (!NT_STATUS_IS_OK(status)) {
                TALLOC_FREE(subreq);
+               tevent_req_nterror(req, status);
                return;
        }