]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug 598: LDAP basic authentication shouldn't crash if server is unreachable
authorhno <>
Tue, 6 May 2003 06:41:17 +0000 (06:41 +0000)
committerhno <>
Tue, 6 May 2003 06:41:17 +0000 (06:41 +0000)
helpers/basic_auth/LDAP/squid_ldap_auth.c

index d71f0063ecbd76bf1239484bfe5966fc8e692c3b..e4c5f422aff22348898f49323f3a39e050e081cb 100644 (file)
@@ -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);