Pass a threadsafe ctx into fr_connection_pool create callback
[freeradius.git] / src / modules / rlm_krb5 / rlm_krb5.c
index adc5e3e..14743d5 100644 (file)
@@ -222,12 +222,12 @@ static int mod_instantiate(CONF_SECTION *conf, void *instance)
        /*
         *      Initialize the socket pool.
         */
-       inst->pool = fr_connection_pool_init(conf, inst, mod_conn_create, NULL, mod_conn_delete, NULL);
+       inst->pool = fr_connection_pool_init(conf, inst, mod_conn_create, NULL, NULL, NULL);
        if (!inst->pool) {
                return -1;
        }
 #else
-       inst->conn = mod_conn_create(inst);
+       inst->conn = mod_conn_create(inst, inst);
        if (!inst->conn) {
                return -1;
        }