r24307: fill in choise with value -1 on error
authorStefan Metzmacher <metze@samba.org>
Fri, 10 Aug 2007 09:56:13 +0000 (09:56 +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 2961a35e90aae44c8560b1f4b56bfa6343c837d7)

source3/smbd/negprot.c

index 06b17a9a24183d264c286174c45f20eba77265a0..a28b2f3d4cf5296ebef8415e9216a82e035e75a5 100644 (file)
@@ -674,6 +674,7 @@ 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"));
+               SSVAL(outbuf,smb_vwv0,choice);
        }
   
        DEBUG( 5, ( "negprot index=%d\n", choice ) );