From: Ondřej Kuzník Date: Mon, 2 Dec 2019 12:25:52 +0000 (+0000) Subject: ITS#8629 Make sure pwcons is around for slapauth X-Git-Tag: OPENLDAP_REL_ENG_2_4_49~34 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=77124e26beabc653c31243f6d1482971fca0bdfd;p=thirdparty%2Fopenldap.git ITS#8629 Make sure pwcons is around for slapauth Long term, overlay callbacks should not be running in tool mode at all. --- diff --git a/servers/slapd/overlays/ppolicy.c b/servers/slapd/overlays/ppolicy.c index 48215c6686..5884a99756 100644 --- a/servers/slapd/overlays/ppolicy.c +++ b/servers/slapd/overlays/ppolicy.c @@ -2424,7 +2424,7 @@ ppolicy_db_init( on->on_bi.bi_private = ch_calloc( sizeof(pp_info), 1 ); - if ( dtblsize && !pwcons ) { + if ( !pwcons ) { /* accommodate for c_conn_idx == -1 */ pwcons = ch_calloc( sizeof(pw_conn), dtblsize + 1 ); pwcons++;