From 2a45d1b9780f85b07e21c67a468edc71e90fa7b3 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Mon, 6 Dec 2004 15:14:42 +0000 Subject: r4077: don't add wrapping to empty blobs metze (This used to be commit e6d83d019dc46ff7ae32e7c8f9f7a3ab7d0cdcf3) --- source4/libcli/auth/gssapi_parse.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'source4/libcli/auth') 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); -- cgit