From eb245091e59402780d8a2136a30e0cf31398f7cf Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Tue, 27 Sep 2011 09:54:37 -0700 Subject: s3-messaging Do not ever send a kill to -1 This from a report by Olaf Flebbe Andrew Bartlett Autobuild-User: Andrew Bartlett Autobuild-Date: Wed Sep 28 00:23:44 CEST 2011 on sn-devel-104 --- source3/lib/messages_local.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source3/lib') 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. */ -- cgit