From 84e7faf6cdb4330316bf21a21b0448e074064996 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Thu, 21 Dec 2006 21:14:53 +0000 Subject: r20308: ContextSimple can be zero length -- seen in a multi-step gssapi ldap bind. Did not find that in Samba3 code, so there's nothing to port. Volker (This used to be commit 9bdc19b6d5fe3dff57a07f4b760840d0043a53ad) --- source4/libcli/util/asn1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4') diff --git a/source4/libcli/util/asn1.c b/source4/libcli/util/asn1.c index d139996bd0..b1328344c5 100644 --- a/source4/libcli/util/asn1.c +++ b/source4/libcli/util/asn1.c @@ -641,7 +641,7 @@ BOOL asn1_read_ContextSimple(struct asn1_data *data, uint8_t num, DATA_BLOB *blo return False; } *blob = data_blob(NULL, len); - if (!blob->data) { + if ((len != 0) && (!blob->data)) { data->has_error = True; return False; } -- cgit