From b467dbb47043d531b3c2497c91a8abeec77118eb Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Fri, 3 Dec 2004 17:28:33 +0000 Subject: [PATCH] ITS#3404, fix uninit'd ctrl fields --- servers/slapd/controls.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/servers/slapd/controls.c b/servers/slapd/controls.c index 76e470efe6..688e726607 100644 --- a/servers/slapd/controls.c +++ b/servers/slapd/controls.c @@ -523,6 +523,8 @@ int get_ctrls( c->ldctl_iscritical = (crit != 0); tag = ber_peek_tag( ber, &len ); + } else { + c->ldctl_iscritical = 0; } if( tag == LBER_OCTETSTRING ) { @@ -539,6 +541,8 @@ int get_ctrls( rs->sr_text = "decoding controls error"; goto return_results; } + } else { + BER_BVZERO( &c->ldctl_value ); } Debug( LDAP_DEBUG_TRACE, -- 2.39.5