Mercurial > dovecot > core-2.2
changeset 3908:afe21b6d4b68 HEAD
Give a clear error message if SQL/LDAP configuration file path was left
empty.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Wed, 18 Jan 2006 18:53:20 +0200 |
parents | fc69c8b9439a |
children | 411f20e72a8f |
files | src/auth/db-ldap.c src/auth/db-sql.c |
diffstat | 2 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/auth/db-ldap.c Tue Jan 17 16:04:01 2006 +0200 +++ b/src/auth/db-ldap.c Wed Jan 18 18:53:20 2006 +0200 @@ -406,6 +406,9 @@ return conn; } + if (*config_path == '\0') + i_fatal("LDAP: Configuration file path not given"); + pool = pool_alloconly_create("ldap_connection", 1024); conn = p_new(pool, struct ldap_connection, 1); conn->pool = pool;
--- a/src/auth/db-sql.c Tue Jan 17 16:04:01 2006 +0200 +++ b/src/auth/db-sql.c Wed Jan 18 18:53:20 2006 +0200 @@ -62,6 +62,9 @@ return conn; } + if (*config_path == '\0') + i_fatal("LDAP: Configuration file path not given"); + pool = pool_alloconly_create("sql_connection", 1024); conn = p_new(pool, struct sql_connection, 1); conn->pool = pool;