r14790: Fix possible null deref. Coverity #277.
authorJeremy Allison <jra@samba.org>
Wed, 29 Mar 2006 23:45:08 +0000 (23:45 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:15:48 +0000 (11:15 -0500)
Jeremy.
(This used to be commit 2454af392a71989ecddb2dbb17a9217658102523)

source3/smbd/sesssetup.c

index fcb778d1fe364a78139f36a2c48b612ff40febb2..3280e2d5fccb224d8f361008cbc9751e782991f1 100644 (file)
@@ -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())) {