libcli/smb2: sign SMB2 Logoff requests
[tprouty/samba.git] / source4 / libcli / smb2 / logoff.c
index b38a08ca43231ef1dcdf9c5b8785427cfff32896..e3f83f27d884f6de9786a84fae8c7f672d2b09a7 100644 (file)
@@ -33,6 +33,8 @@ struct smb2_request *smb2_logoff_send(struct smb2_session *session)
        req = smb2_request_init(session->transport, SMB2_OP_LOGOFF, 0x04, false, 0);
        if (req == NULL) return NULL;
 
+       req->session = session;
+
        SBVAL(req->out.hdr,  SMB2_HDR_SESSION_ID, session->uid);
 
        SSVAL(req->out.body, 0x02, 0);