waffle

user and group backend daemon
git clone git://git.2f30.org/waffle
Log | Files | Refs | LICENSE

commit cee1d2dafd6632c93269199f72c7f99a334c1d39
parent e2c527c8fbcf4bbf859184d1e254d8ee1cfb085e
Author: sin <sin@2f30.org>
Date:   Wed, 11 Mar 2015 14:18:16 +0000

Free LDAP config on error

Diffstat:
Mldap.c | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/ldap.c b/ldap.c @@ -121,7 +121,9 @@ parse_config(void) ldap_conf.port = 389; if (!ldap_conf.version) ldap_conf.version = 3; - return ldap_conf.base ? 0 : -1; + if (!ldap_conf.base) + goto out; + return 0; out: free_config(); return -1;