- get rid of req->mid, as it isn't a safe value to use to match
requests in the server (it is safe in the client code, as we choose
the mid, but in the server we can't rely on other clients to choose
the mid carefully)
(This used to be commit
938fb44351e12a515073ea94cd306988d5ca7340)
req->async_states = talloc_p(req, struct ntvfs_async_state);
if (!req->async_states) {
+ talloc_free(req);
return NULL;
}
-
- ZERO_STRUCTP(req->async_states);
+ req->async_states->state = 0;
return req;
}
req->flags = CVAL(req->in.hdr, HDR_FLG);
req->flags2 = SVAL(req->in.hdr, HDR_FLG2);
req->smbpid = SVAL(req->in.hdr,HDR_PID);
- req->mid = SVAL(req->in.hdr,HDR_MID);
if (!req_signing_check_incoming(req)) {
req_reply_error(req, NT_STATUS_ACCESS_DENIED);
/* the session context is derived from the vuid */
struct smbsrv_session *session;
- /* the mid of this packet - used to match replies */
- uint16_t mid;
-
/* a set of flags to control usage of the request. See REQ_CONTROL_* */
unsigned control_flags;