]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
don't free vp before using it
authorAlan T. DeKok <aland@freeradius.org>
Sun, 10 Jul 2022 13:12:36 +0000 (09:12 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Sun, 10 Jul 2022 13:12:36 +0000 (09:12 -0400)
src/protocols/dhcpv4/decode.c

index fd6a04b65b3b98e1e93dec1c992173f437c8ff6a..4fce1ee35372404d8abbb87d268cca872ced4c91 100644 (file)
@@ -277,7 +277,6 @@ static ssize_t decode_value(TALLOC_CTX *ctx, fr_pair_list_t *out, fr_dict_attr_t
                }
 
                if (exact && (slen != (end - p))) {
-                       talloc_free(vp);
                        goto raw;
                }