]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
don't need to check is_raw flag
authorAlan T. DeKok <aland@freeradius.org>
Fri, 8 Sep 2023 14:09:41 +0000 (10:09 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 8 Sep 2023 14:09:41 +0000 (10:09 -0400)
because we now always set is_raw for unknowns, so it's enough to
check the is_unknown flag

src/lib/eap_aka_sim/decode.c

index 25f32f9836a5e6726a2f0e273280b38a3d3fc4c6..9fd55aa9f857c8fb09e38639e0f9f6d986df9f4b 100644 (file)
@@ -715,7 +715,7 @@ static ssize_t sim_decode_pair_value(TALLOC_CTX *ctx, fr_pair_list_t *out, fr_di
         *      For unknown attributes copy the entire value, not skipping
         *      any reserved bytes.
         */
-       if (parent->flags.is_unknown || parent->flags.is_raw) {
+       if (parent->flags.is_unknown) {
                fr_pair_value_memdup(vp, p, attr_len, true);
                vp->vp_length = attr_len;
                goto done;