]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
use decoded len, not len from all of the packet
authorAlan T. DeKok <aland@freeradius.org>
Sat, 23 Sep 2017 13:01:40 +0000 (09:01 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Sat, 23 Sep 2017 13:01:40 +0000 (09:01 -0400)
src/modules/rlm_eap/types/rlm_eap_fast/eap_fast.c

index 3dc9dc34bfad2ca8996100d8bab313b470945dcc..b7b4df9a80da6aa56099740dcfa7cae29c1d206b 100644 (file)
@@ -452,7 +452,7 @@ ssize_t eap_fast_decode_pair(TALLOC_CTX *ctx, vp_cursor_t *cursor, fr_dict_attr_
                        MEM(vp = fr_pair_afrom_child_num(ctx, parent, attr));
 
                } else if (da->type == FR_TYPE_TLV) {
-                       p += (size_t) eap_fast_decode_pair(ctx, cursor, parent, p, end - p, decoder_ctx);
+                       p += (size_t) eap_fast_decode_pair(ctx, cursor, parent, p, len, decoder_ctx);
                        continue;
 
                } else {