diff options
author | Volker Lendecke <vl@samba.org> | 2012-04-19 10:20:27 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2012-04-19 17:37:37 +0200 |
commit | 8173331150482b78e85c005fcea2c7d80f430f65 (patch) | |
tree | e1c4b606ac7ea91d345d686426f5bba51b3091c6 | |
parent | dc3b79626022e07980be40627b9f2255d58b6e70 (diff) | |
download | samba-8173331150482b78e85c005fcea2c7d80f430f65.tar.gz samba-8173331150482b78e85c005fcea2c7d80f430f65.tar.bz2 samba-8173331150482b78e85c005fcea2c7d80f430f65.zip |
s3: Fix Coverity ID 2747: FORWARD_NULL
For the notify cleanup process we have a notify context without a
messaging entry. We will never call notify_add/remove for this, but
the code should protect against this.
-rw-r--r-- | source3/smbd/notify_internal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/notify_internal.c b/source3/smbd/notify_internal.c index 27fe21214b..aa02e32a2f 100644 --- a/source3/smbd/notify_internal.c +++ b/source3/smbd/notify_internal.c @@ -393,7 +393,7 @@ NTSTATUS notify_remove(struct notify_context *notify, void *private_data) struct db_record *notify_rec; NTSTATUS status; - if (notify == NULL) { + if ((notify == NULL) || (notify->msg == NULL)) { return NT_STATUS_NOT_IMPLEMENTED; } |