1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-28 01:58:17 +03:00

r4077: don't add wrapping to empty blobs

metze
(This used to be commit e6d83d019dc46ff7ae32e7c8f9f7a3ab7d0cdcf3)
This commit is contained in:
Stefan Metzmacher 2004-12-06 15:14:42 +00:00 committed by Gerald (Jerry) Carter
parent 44891afed7
commit 2a45d1b978

View File

@ -34,7 +34,11 @@
DATA_BLOB gensec_gssapi_gen_krb5_wrap(TALLOC_CTX *mem_ctx, const DATA_BLOB *ticket, const uint8 tok_id[2]) DATA_BLOB gensec_gssapi_gen_krb5_wrap(TALLOC_CTX *mem_ctx, const DATA_BLOB *ticket, const uint8 tok_id[2])
{ {
struct asn1_data data; struct asn1_data data;
DATA_BLOB ret; DATA_BLOB ret = data_blob(NULL,0);
if (!ticket->data) {
return ret;
}
ZERO_STRUCT(data); ZERO_STRUCT(data);