1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-27 03:21:53 +03:00

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 2a724a7a87)
This commit is contained in:
Volker Lendecke 2003-08-13 20:27:18 +00:00
parent ea40385507
commit d7ec3205e9

View File

@ -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);