diff options
author | Andrew Bartlett <abartlet@samba.org> | 2011-09-27 09:54:37 -0700 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2011-09-28 00:23:44 +0200 |
commit | eb245091e59402780d8a2136a30e0cf31398f7cf (patch) | |
tree | 40d4dc0cf3cb57d33ec1aeb97c2b06410e9b61b1 /source3 | |
parent | 288265c049f3f0600bd89efa61185c16d36ab017 (diff) | |
download | samba-eb245091e59402780d8a2136a30e0cf31398f7cf.tar.gz samba-eb245091e59402780d8a2136a30e0cf31398f7cf.tar.bz2 samba-eb245091e59402780d8a2136a30e0cf31398f7cf.zip |
s3-messaging Do not ever send a kill to -1
This from a report by Olaf Flebbe <o.flebbe@science-computing.de>
Andrew Bartlett
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Wed Sep 28 00:23:44 CEST 2011 on sn-devel-104
Diffstat (limited to 'source3')
-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. */ |