Crash when LDAP plugin is not loaded #1863

pull/1867/head
René Cannaò 7 years ago
parent c1c0617995
commit 8dd1bf0967

@ -4652,6 +4652,9 @@ void ProxySQL_Admin::flush_ldap_variables___database_to_runtime(SQLite3DB *db, b
void ProxySQL_Admin::flush_ldap_variables___runtime_to_database(SQLite3DB *db, bool replace, bool del, bool onlyifempty, bool runtime) {
proxy_debug(PROXY_DEBUG_ADMIN, 4, "Flushing LDAP variables. Replace:%d, Delete:%d, Only_If_Empty:%d\n", replace, del, onlyifempty);
if (GloMyLdapAuth == NULL) {
return;
}
if (onlyifempty) {
char *error=NULL;
int cols=0;

Loading…
Cancel
Save