const char *const *args, *value;
unsigned int i, count;
+ if (passdb_template_is_empty(tmpl))
+ return;
+
str = t_str_new(256);
table = auth_request_get_var_expand_table(auth_request, NULL);
}
return FALSE;
}
+
+bool passdb_template_is_empty(struct passdb_template *tmpl)
+{
+ return array_count(&tmpl->args) == 0;
+}
struct auth_request *auth_request);
bool passdb_template_remove(struct passdb_template *tmpl,
const char *key, const char **value_r);
+bool passdb_template_is_empty(struct passdb_template *tmpl);
#endif
const char *const *args, *value;
unsigned int i, count;
+ if (userdb_template_is_empty(tmpl))
+ return;
+
str = t_str_new(256);
table = auth_request_get_var_expand_table(auth_request, NULL);