]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#8629 Make sure pwcons is around for slapauth
authorOndřej Kuzník <ondra@mistotebe.net>
Mon, 2 Dec 2019 12:25:52 +0000 (12:25 +0000)
committerQuanah Gibson-Mount <quanah@openldap.org>
Thu, 9 Jan 2020 16:54:59 +0000 (16:54 +0000)
Long term, overlay callbacks should not be running in tool mode at all.

servers/slapd/overlays/ppolicy.c

index 48215c668667a784f49417f30e67bbc22c0237f7..5884a997562706f3e4ac8d7efda03861069638b0 100644 (file)
@@ -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++;