r4109: fixed an uninitialised socket write found by kukks
[samba.git] / 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) {