diff options
Diffstat (limited to 'source4/smbd/request.c')
-rw-r--r-- | source4/smbd/request.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/smbd/request.c b/source4/smbd/request.c index 65bf71051f..065e63a8d2 100644 --- a/source4/smbd/request.c +++ b/source4/smbd/request.c @@ -62,6 +62,10 @@ struct request_context *init_smb_request(struct server_context *smb) smb->socket.pkt_count++; req = talloc(mem_ctx, sizeof(*req)); + if (!req) { + return NULL; + } + ZERO_STRUCTP(req); /* setup the request context */ |