summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2004-12-06 15:14:42 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:06:23 -0500
commit2a45d1b9780f85b07e21c67a468edc71e90fa7b3 (patch)
treec96173d7f651c73f5b82409e591cd73e9115a4c5
parent44891afed744274c15246b07747835ab1a3924d6 (diff)
downloadsamba-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)
-rw-r--r--source4/libcli/auth/gssapi_parse.c6
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);