diff options
Diffstat (limited to 'source4')
-rw-r--r-- | source4/libcli/auth/gssapi_parse.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source4/libcli/auth/gssapi_parse.c b/source4/libcli/auth/gssapi_parse.c index 63bca6d5aa..e1fb2e9cf5 100644 --- a/source4/libcli/auth/gssapi_parse.c +++ b/source4/libcli/auth/gssapi_parse.c @@ -34,7 +34,11 @@ DATA_BLOB gensec_gssapi_gen_krb5_wrap(TALLOC_CTX *mem_ctx, const DATA_BLOB *ticket, const uint8 tok_id[2]) { struct asn1_data data; - DATA_BLOB ret; + DATA_BLOB ret = data_blob(NULL,0); + + if (!ticket->data) { + return ret; + } ZERO_STRUCT(data); |