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:
committed by
Gerald (Jerry) Carter
parent
85e1975022
commit
210971d092
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user