diff options
-rw-r--r-- | source3/lib/messages_local.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/lib/messages_local.c b/source3/lib/messages_local.c index 346cd30b5b..67234d4d76 100644 --- a/source3/lib/messages_local.c +++ b/source3/lib/messages_local.c @@ -282,6 +282,9 @@ static NTSTATUS message_notify(struct server_id procid) */ SMB_ASSERT(pid > 0); + if (pid <= 0) { + return NT_STATUS_INVALID_HANDLE; + } if (euid != 0) { /* If we're not root become so to send the message. */ |