From: hno <> Date: Tue, 6 May 2003 06:41:17 +0000 (+0000) Subject: Bug 598: LDAP basic authentication shouldn't crash if server is unreachable X-Git-Tag: SQUID_3_0_PRE1~210 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=46412b3844431ce984d4ec99eba6018cfac1593a;p=thirdparty%2Fsquid.git Bug 598: LDAP basic authentication shouldn't crash if server is unreachable --- diff --git a/helpers/basic_auth/LDAP/squid_ldap_auth.c b/helpers/basic_auth/LDAP/squid_ldap_auth.c index d71f0063ec..e4c5f422af 100644 --- a/helpers/basic_auth/LDAP/squid_ldap_auth.c +++ b/helpers/basic_auth/LDAP/squid_ldap_auth.c @@ -517,6 +517,8 @@ checkLDAP(LDAP * ld, char *userid, char *password) fprintf(stderr, PROGRAM_NAME ": WARNING, SSL error %d (%s)\n", sslerr, ldapssl_err2string(sslerr)); } #endif + ldap_msgfree(res); + return 1; } } entry = ldap_first_entry(ld, res);