mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-24 13:24:56 +08:00
ITS#3404, fix uninit'd ctrl fields
This commit is contained in:
parent
74da2306ff
commit
b467dbb470
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user