Commit 0e382f6a authored by Quanah Gibson-Mount's avatar Quanah Gibson-Mount
Browse files

ITS#5235

parent 06775568
......@@ -13,6 +13,7 @@ OpenLDAP 2.4.7 Engineering
Fixed slapd-bdb to report and fail on internal errors (ITS#5232)
Fixed slapo-pcache op->o_abandon handling (ITS#5187)
Fixed slapo-ppolicy single password check on modify (ITS#5146)
Fixed slapo-ppolicy internal search (ITS#5235)
Fixed slapo-syncprov refresh and persist cookie sending (ITS#5210)
Fixed slapo-syncprov ignore invalid cookies (ITS#5211)
Fixed slapo-translucent interaction with slapo-rwm (ITS#4889)
......
......@@ -2121,8 +2121,11 @@ ppolicy_db_init(
on->on_bi.bi_private = ch_calloc( sizeof(pp_info), 1 );
if ( dtblsize && !pwcons )
pwcons = ch_calloc(sizeof(pw_conn), dtblsize );
if ( dtblsize && !pwcons ) {
/* accommodate for c_conn_idx == -1 */
pwcons = ch_calloc( sizeof(pw_conn), dtblsize + 1 );
pwcons++;
}
return 0;
}
......@@ -2149,6 +2152,7 @@ ppolicy_close(
/* Perhaps backover should provide bi_destroy hooks... */
ov_count--;
if ( ov_count <=0 && pwcons ) {
pwcons--;
free( pwcons );
pwcons = NULL;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment