From: Alan T. DeKok Date: Sat, 21 Jul 2012 00:29:43 +0000 (-0400) Subject: Fix typo X-Git-Tag: release_2_2_0~89 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=39e04c5bdd77503f09d4fdcea8f5b52d4bc69683;p=thirdparty%2Ffreeradius-server.git Fix typo --- diff --git a/src/modules/rlm_eap/types/rlm_eap_ttls/ttls.c b/src/modules/rlm_eap/types/rlm_eap_ttls/ttls.c index b2640529537..772055ce214 100644 --- a/src/modules/rlm_eap/types/rlm_eap_ttls/ttls.c +++ b/src/modules/rlm_eap/types/rlm_eap_ttls/ttls.c @@ -64,7 +64,7 @@ static int diameter_verify(REQUEST *request, memcpy(&length, data + 4, 4); length = ntohl(length); - if ((data[8] & 0x80) != 0) { + if ((data[4] & 0x80) != 0) { if (data_len < 16) { RDEBUG2(" Diameter attribute is too small to contain a Diameter header with Vendor-Id"); return 0; @@ -203,7 +203,6 @@ static VALUE_PAIR *diameter2vp(REQUEST *request, SSL *ssl, if (size > 253) { RDEBUG2("WARNING: diameter2vp skipping long attribute %u, attr"); - pairfree(&vp); goto next_attr; }