summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-12-21 21:14:53 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:29:37 -0500
commit84e7faf6cdb4330316bf21a21b0448e074064996 (patch)
tree1529d3ea0c397aa67cffeeefddfe6490df4ce77b /source4
parenta624503418f6517e016e7f2f9a70729b4fad08b4 (diff)
downloadsamba-84e7faf6cdb4330316bf21a21b0448e074064996.tar.gz
samba-84e7faf6cdb4330316bf21a21b0448e074064996.tar.bz2
samba-84e7faf6cdb4330316bf21a21b0448e074064996.zip
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)
Diffstat (limited to 'source4')
-rw-r--r--source4/libcli/util/asn1.c2
1 files changed, 1 insertions, 1 deletions
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;
}