1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-16 00:23:52 +03:00

r24248: Attempt to fix bug #4830 by <mwallnoefer@yahoo.de>. If there is no

payload to the control, we still need to inialise *value, as otherwise
we read uninitialised data later.

Andrew Bartlett
(This used to be commit f6566480b7)
This commit is contained in:
Andrew Bartlett
2007-08-06 04:07:05 +00:00
committed by Gerald (Jerry) Carter
parent 85e1975022
commit 210971d092

View File

@@ -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;
}