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:
parent
ea40385507
commit
d7ec3205e9
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user