diff options
author | Volker Lendecke <vlendec@samba.org> | 2007-02-01 19:29:07 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:17:39 -0500 |
commit | 69d8c5ae5f1319e3c9430aa7d6d09ca2a62ba10a (patch) | |
tree | 4a0c00ef0b03b5e916800787a0985c7296f29ad0 /source3/libsmb | |
parent | aebd5170755d638aa0e4429dfb7dce9b4c405d06 (diff) | |
download | samba-69d8c5ae5f1319e3c9430aa7d6d09ca2a62ba10a.tar.gz samba-69d8c5ae5f1319e3c9430aa7d6d09ca2a62ba10a.tar.bz2 samba-69d8c5ae5f1319e3c9430aa7d6d09ca2a62ba10a.zip |
r21115: notify_internal.c needs to remove the table entry if a process has crashed. So
it needs the specific error message.
Make messages.c return NTSTATUS and specificially NT_STATUS_INVALID_HANDLE if
sending to a non-existent process.
Volker
(This used to be commit 3f620d181da0c356c8ffbdb5b380ccab3645a972)
Diffstat (limited to 'source3/libsmb')
-rw-r--r-- | source3/libsmb/clidgram.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/libsmb/clidgram.c b/source3/libsmb/clidgram.c index dfb613238f..a983f485ab 100644 --- a/source3/libsmb/clidgram.c +++ b/source3/libsmb/clidgram.c @@ -101,8 +101,9 @@ BOOL cli_send_mailslot(BOOL unique, const char *mailslot, DEBUGADD(4,("to %s IP %s\n", nmb_namestr(&dgram->dest_name), inet_ntoa(dest_ip))); - return message_send_pid(pid_to_procid(nmbd_pid), MSG_SEND_PACKET, &p, sizeof(p), - False); + return NT_STATUS_IS_OK(message_send_pid(pid_to_procid(nmbd_pid), + MSG_SEND_PACKET, &p, sizeof(p), + False)); } /* |