diff options
-rw-r--r-- | source3/smbd/notify.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/smbd/notify.c b/source3/smbd/notify.c index 40dcecee26..872ec86644 100644 --- a/source3/smbd/notify.c +++ b/source3/smbd/notify.c @@ -175,6 +175,8 @@ void change_notify_reply(const char *request_buf, uint32 max_param, goto done; } + buflen = smb_size+38+prs_offset(&ps) + 4 /* padding */; + if (!(outbuf = SMB_MALLOC_ARRAY(char, buflen))) { change_notify_reply_packet(request_buf, NT_STATUS_NO_MEMORY); goto done; |