summaryrefslogtreecommitdiffstats
path: root/source4/smb_server/request.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/smb_server/request.c')
-rw-r--r--source4/smb_server/request.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/source4/smb_server/request.c b/source4/smb_server/request.c
index 3095d0b70c..34273a63a8 100644
--- a/source4/smb_server/request.c
+++ b/source4/smb_server/request.c
@@ -54,7 +54,14 @@ struct smbsrv_request *init_smb_request(struct smbsrv_connection *smb_conn)
/* setup the request context */
req->smb_conn = smb_conn;
-
+
+ req->async_states = talloc_p(req, struct ntvfs_async_state);
+ if (!req->async_states) {
+ return NULL;
+ }
+
+ ZERO_STRUCTP(req->async_states);
+
return req;
}