mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 00:29:35 -05:00
ITS#3404, fix uninit'd ctrl fields
This commit is contained in:
parent
74da2306ff
commit
b467dbb470
1 changed files with 4 additions and 0 deletions
|
|
@ -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 a new issue