git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
44891af
)
r4077: don't add wrapping to empty blobs
author
Stefan Metzmacher
<metze@samba.org>
Mon, 6 Dec 2004 15:14:42 +0000
(15:14 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 18:06:23 +0000
(13:06 -0500)
metze
(This used to be commit
e6d83d019dc46ff7ae32e7c8f9f7a3ab7d0cdcf3
)
source4/libcli/auth/gssapi_parse.c
patch
|
blob
|
history
diff --git
a/source4/libcli/auth/gssapi_parse.c
b/source4/libcli/auth/gssapi_parse.c
index 63bca6d5aaf254a2a032555bee9dad1cabfc79ff..e1fb2e9cf585cbf03d3d755821dd51baa4c9f9af 100644
(file)
--- 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);