From 2a724a7a873c08f14644427766bfd48908ddb501 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Wed, 13 Aug 2003 20:27:18 +0000 Subject: Don't wrap up anything that is not there. Otherwise upper layers can not figure that we got no ticket. Volker --- source/libsmb/clispnego.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source/libsmb') 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); -- cgit