When a module instance using the htrie driver is not used in policy, and
has it's type set to `auto`, it will still have htype FR_HTRIE_AUTO when
the module is instantiated.
In this case, exit driver instantiation early.
rlm_cache_htrie_mutable_t *mutable;
int ret;
+ /*
+ * An instance with htype of FR_HTRIE_AUTO has not been used
+ * in any policy - so instantiation can be short circuited.
+ */
+ if (driver->htype == FR_HTRIE_AUTO) return 0;
+
MEM(mutable = talloc_zero(NULL, rlm_cache_htrie_mutable_t));
/*