s3:smb2cli: initialize status if we got an unexpected response
authorStefan Metzmacher <metze@samba.org>
Sat, 17 Sep 2011 19:11:23 +0000 (21:11 +0200)
committerStefan Metzmacher <metze@samba.org>
Sun, 18 Sep 2011 03:33:10 +0000 (05:33 +0200)
metze

source3/libsmb/smb2cli_base.c

index 5089aa94693507b4232d288112b5728daeb073bf..94c518fe3a74ae2c0678d7fd0e85c1b282e84542 100644 (file)
@@ -559,6 +559,7 @@ static void smb2cli_inbuf_received(struct tevent_req *subreq)
                         * We need to close the connection and notify
                         * all pending requests.
                         */
+                       status = NT_STATUS_INVALID_NETWORK_RESPONSE;
                        smb2cli_notify_pending(cli, status);
                        TALLOC_FREE(frame);
                        return;