r4109: fixed an uninitialised socket write found by kukks
authorAndrew Tridgell <tridge@samba.org>
Thu, 9 Dec 2004 04:40:57 +0000 (04:40 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:06:27 +0000 (13:06 -0500)
source/smb_server/negprot.c

index a9a213131aa34b465740a74d12d3d89f9038000f..d5e55bf1004956232906ac0b59a782d0ffb6a786 100644 (file)
@@ -183,6 +183,7 @@ static void reply_lanman2(struct smbsrv_request *req, uint16_t choice)
        SIVAL(req->out.vwv, VWV(6), req->smb_conn->pid);
        srv_push_dos_date(req->smb_conn, req->out.vwv, VWV(8), t);
        SSVAL(req->out.vwv, VWV(10), req->smb_conn->negotiate.zone_offset/60);
+       SIVAL(req->out.vwv, VWV(11), 0);
 
        /* Create a token value and add it to the outgoing packet. */
        if (req->smb_conn->negotiate.encrypted_passwords) {