Skip to content
Snippets Groups Projects
Commit b467dbb4 authored by Howard Chu's avatar Howard Chu
Browse files

ITS#3404, fix uninit'd ctrl fields

parent 74da2306
No related branches found
No related tags found
No related merge requests found
......@@ -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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment