From f6566480b7f1b4036b38284aa539f3a69f5c4573 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Mon, 6 Aug 2007 04:07:05 +0000 Subject: r24248: Attempt to fix bug #4830 by . If there is no payload to the control, we still need to inialise *value, as otherwise we read uninitialised data later. Andrew Bartlett --- source/libcli/ldap/ldap_controls.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source/libcli') diff --git a/source/libcli/ldap/ldap_controls.c b/source/libcli/ldap/ldap_controls.c index 4f76c7315b2..3a5d14c0c93 100644 --- a/source/libcli/ldap/ldap_controls.c +++ b/source/libcli/ldap/ldap_controls.c @@ -1143,6 +1143,7 @@ BOOL ldap_decode_control_wrapper(void *mem_ctx, struct asn1_data *data, struct l ctrl->data = NULL; if (!asn1_peek_tag(data, ASN1_OCTET_STRING)) { + *value = data_blob(NULL, 0); goto end_tag; } -- cgit v1.2.1