svn commit: samba r4077 - in branches/SAMBA_4_0/source/libcli/auth:
.
metze at samba.org
metze at samba.org
Mon Dec 6 15:14:43 GMT 2004
Author: metze
Date: 2004-12-06 15:14:42 +0000 (Mon, 06 Dec 2004)
New Revision: 4077
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=4077
Log:
don't add wrapping to empty blobs
metze
Modified:
branches/SAMBA_4_0/source/libcli/auth/gssapi_parse.c
Changeset:
Modified: branches/SAMBA_4_0/source/libcli/auth/gssapi_parse.c
===================================================================
--- branches/SAMBA_4_0/source/libcli/auth/gssapi_parse.c 2004-12-06 15:10:31 UTC (rev 4076)
+++ branches/SAMBA_4_0/source/libcli/auth/gssapi_parse.c 2004-12-06 15:14:42 UTC (rev 4077)
@@ -34,8 +34,12 @@
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);
asn1_push_tag(&data, ASN1_APPLICATION(0));
More information about the samba-cvs
mailing list