diff options
author | Günther Deschner <gd@samba.org> | 2016-04-20 20:09:53 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2016-04-28 16:51:16 +0200 |
commit | 8e016ffeb01167bb8dec66cf9e4bc8605461c15a (patch) | |
tree | 22ec452e3dac787fe7304cd446639b114529f24c | |
parent | 53be47410236ef7c90fe895f49f300e3fe47a8bf (diff) | |
download | samba-8e016ffeb01167bb8dec66cf9e4bc8605461c15a.tar.gz |
libcli/smb: fix NULL pointer derreference in smbXcli_session_is_authenticated().
Guenther
BUG: https://bugzilla.samba.org/show_bug.cgi?id=11841
Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
-rw-r--r-- | libcli/smb/smbXcli_base.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libcli/smb/smbXcli_base.c b/libcli/smb/smbXcli_base.c index 6a717661846..e502dc8bc59 100644 --- a/libcli/smb/smbXcli_base.c +++ b/libcli/smb/smbXcli_base.c @@ -5305,6 +5305,10 @@ bool smbXcli_session_is_authenticated(struct smbXcli_session *session) { const DATA_BLOB *application_key; + if (session == NULL) { + return false; + } + if (session->conn == NULL) { return false; } |