mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-27 01:59:38 -05:00
make sure so is correctly initialized (spotted by valgrind, possibly related to ITS#6649)
This commit is contained in:
parent
5524873079
commit
dc78654c0b
1 changed files with 2 additions and 2 deletions
|
|
@ -801,9 +801,9 @@ static int sssvlv_op_search(
|
|||
op->o_tmpmemctx );
|
||||
/* Install serversort response callback to handle a new search */
|
||||
if ( ps || vc ) {
|
||||
so = ch_malloc( sizeof(sort_op));
|
||||
so = ch_calloc( 1, sizeof(sort_op));
|
||||
} else {
|
||||
so = op->o_tmpalloc( sizeof(sort_op), op->o_tmpmemctx );
|
||||
so = op->o_tmpcalloc( 1, sizeof(sort_op), op->o_tmpmemctx );
|
||||
}
|
||||
sort_conns[op->o_conn->c_conn_idx] = so;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue