diff options
author | Stefan Metzmacher <metze@samba.org> | 2004-12-06 15:14:42 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:06:23 -0500 |
commit | 2a45d1b9780f85b07e21c67a468edc71e90fa7b3 (patch) | |
tree | c96173d7f651c73f5b82409e591cd73e9115a4c5 /source4 | |
parent | 44891afed744274c15246b07747835ab1a3924d6 (diff) | |
download | samba-2a45d1b9780f85b07e21c67a468edc71e90fa7b3.tar.gz samba-2a45d1b9780f85b07e21c67a468edc71e90fa7b3.tar.bz2 samba-2a45d1b9780f85b07e21c67a468edc71e90fa7b3.zip |
r4077: don't add wrapping to empty blobs
metze
(This used to be commit e6d83d019dc46ff7ae32e7c8f9f7a3ab7d0cdcf3)
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); |