summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2006-03-29 23:45:08 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:15:48 -0500
commit75c965d3a45b6f72b2d2eeb5937ce19dc33af419 (patch)
treeef115812df5f049588366e80d14e0efc16490cc0
parent2178bcaa39ec20e055537611619f694a0ebd7248 (diff)
downloadsamba-75c965d3a45b6f72b2d2eeb5937ce19dc33af419.tar.gz
samba-75c965d3a45b6f72b2d2eeb5937ce19dc33af419.tar.bz2
samba-75c965d3a45b6f72b2d2eeb5937ce19dc33af419.zip
r14790: Fix possible null deref. Coverity #277.
Jeremy. (This used to be commit 2454af392a71989ecddb2dbb17a9217658102523)
-rw-r--r--source3/smbd/sesssetup.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/smbd/sesssetup.c b/source3/smbd/sesssetup.c
index fcb778d1fe..3280e2d5fc 100644
--- a/source3/smbd/sesssetup.c
+++ b/source3/smbd/sesssetup.c
@@ -217,7 +217,9 @@ static int reply_spnego_kerberos(connection_struct *conn,
if (pac_data) {
logon_info = get_logon_info_from_pac(pac_data);
- netsamlogon_cache_store( client, &logon_info->info3 );
+ if (logon_info) {
+ netsamlogon_cache_store( client, &logon_info->info3 );
+ }
}
if (!strequal(p+1, lp_realm())) {