r24309: if no protocol matches, just return choise 0xffff
authorStefan Metzmacher <metze@samba.org>
Fri, 10 Aug 2007 10:11:40 +0000 (10:11 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:29:26 +0000 (12:29 -0500)
as we've done before revision 24002

metze
(This used to be commit 6014ecbbfd50bc8f4f351dec1f9dd35c3fe62456)

source3/smbd/negprot.c

index 06b17a9a24183d264c286174c45f20eba77265a0..935d25fab33d7df8e7b0ba283a479c7023c3bdaa 100644 (file)
@@ -674,6 +674,8 @@ void reply_negprot(connection_struct *conn, struct smb_request *req)
                DEBUG(3,("Selected protocol %s\n",supported_protocols[protocol].proto_name));
        } else {
                DEBUG(0,("No protocol supported !\n"));
+               reply_outbuf(req, 1, 0);
+               SSVAL(req->outbuf, smb_vwv0, choice);
        }
   
        DEBUG( 5, ( "negprot index=%d\n", choice ) );