diff options
author | Volker Lendecke <vlendec@samba.org> | 2003-08-13 20:27:18 +0000 |
---|---|---|
committer | Volker Lendecke <vlendec@samba.org> | 2003-08-13 20:27:18 +0000 |
commit | d7ec3205e9f8202c47931d7362a18ab2a36c60ea (patch) | |
tree | 255e13174e34a206f21f0b961f6a12dc0d5a24c2 /source3 | |
parent | ea403855075b75150b81e51e96774c95b92f369a (diff) | |
download | samba-d7ec3205e9f8202c47931d7362a18ab2a36c60ea.tar.gz samba-d7ec3205e9f8202c47931d7362a18ab2a36c60ea.tar.bz2 samba-d7ec3205e9f8202c47931d7362a18ab2a36c60ea.zip |
Don't wrap up anything that is not there. Otherwise upper layers
can not figure that we got no ticket.
Volker
(This used to be commit 2a724a7a873c08f14644427766bfd48908ddb501)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/libsmb/clispnego.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/libsmb/clispnego.c b/source3/libsmb/clispnego.c index b0570b09b6..63076a1a1c 100644 --- a/source3/libsmb/clispnego.c +++ b/source3/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); |