git.samba.org
/
vlendec
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
70d8727
)
libcli/smb: fix NULL pointer derreference in smbXcli_session_is_authenticated().
author
Günther Deschner
<gd@samba.org>
Wed, 20 Apr 2016 18:09:53 +0000
(20:09 +0200)
committer
Stefan Metzmacher
<metze@samba.org>
Fri, 29 Apr 2016 07:34:30 +0000
(09:34 +0200)
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>
(cherry picked from commit
8e016ffeb01167bb8dec66cf9e4bc8605461c15a
)
libcli/smb/smbXcli_base.c
patch
|
blob
|
history
diff --git
a/libcli/smb/smbXcli_base.c
b/libcli/smb/smbXcli_base.c
index 14b5992d0a757d830301ee6cc57c77e04ec9a9dd..1d41d4ba210b33cf4e59ea91eda24500351dac98 100644
(file)
--- a/
libcli/smb/smbXcli_base.c
+++ b/
libcli/smb/smbXcli_base.c
@@
-5306,6
+5306,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;
}