summaryrefslogtreecommitdiffstats
path: root/source/libsmb
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2003-08-13 20:27:18 +0000
committerVolker Lendecke <vlendec@samba.org>2003-08-13 20:27:18 +0000
commit2a724a7a873c08f14644427766bfd48908ddb501 (patch)
treeab688817fced42b53547ed76719bc5413bfe915f /source/libsmb
parent9f453f27be7eeb792b57d5c60284bb5efc84b408 (diff)
downloadsamba-2a724a7a873c08f14644427766bfd48908ddb501.tar.gz
samba-2a724a7a873c08f14644427766bfd48908ddb501.tar.xz
samba-2a724a7a873c08f14644427766bfd48908ddb501.zip
Don't wrap up anything that is not there. Otherwise upper layers
can not figure that we got no ticket. Volker
Diffstat (limited to 'source/libsmb')
-rw-r--r--source/libsmb/clispnego.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/libsmb/clispnego.c b/source/libsmb/clispnego.c
index b0570b09b60..63076a1a1ce 100644
--- a/source/libsmb/clispnego.c
+++ b/source/libsmb/clispnego.c
@@ -331,6 +331,9 @@ DATA_BLOB spnego_gen_negTokenTarg(const char *principal, int time_offset, unsign
/* get a kerberos ticket for the service and extract the session key */
tkt = cli_krb5_get_ticket(principal, time_offset, session_key_krb5);
+ if (tkt.data == NULL)
+ return tkt;
+
/* wrap that up in a nice GSS-API wrapping */
tkt_wrapped = spnego_gen_krb5_wrap(tkt, TOK_ID_KRB_AP_REQ);