From 77124e26beabc653c31243f6d1482971fca0bdfd Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ond=C5=99ej=20Kuzn=C3=ADk?= Date: Mon, 2 Dec 2019 12:25:52 +0000 Subject: [PATCH] ITS#8629 Make sure pwcons is around for slapauth Long term, overlay callbacks should not be running in tool mode at all. --- servers/slapd/overlays/ppolicy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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++; -- 2.47.2