]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
digest_edirectory_auth: Remove useless free in edirectory digest (#2192)
authorJoshua Rogers <MegaManSec@users.noreply.github.com>
Mon, 8 Sep 2025 23:47:49 +0000 (23:47 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Mon, 8 Sep 2025 23:47:52 +0000 (23:47 +0000)
In this codepath, `requestBer` is nullptr.

src/auth/digest/eDirectory/edir_ldapext.cc

index 311d1248b06027a53f11bc506e33ace3b016d7e5..d1680b2293a6601a03e18a3af92bb0802d279676 100644 (file)
@@ -110,7 +110,6 @@ static int berEncodePasswordData(
     /* Allocate a BerElement for the request parameters. */
     if ((requestBer = ber_alloc()) == nullptr) {
         err = LDAP_ENCODING_ERROR;
-        ber_free(requestBer, 1);
         return err;
     }