From: Jouni Malinen Date: Sat, 11 Oct 2014 15:06:52 +0000 (+0300) Subject: RADIUS: Remove unused write X-Git-Tag: hostap_2_4~1355 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=58b992489c03755ab4df0a3f616dc3d67f8cb97a;p=thirdparty%2Fhostap.git RADIUS: Remove unused write There is no need to update the left variable when breaking out from the loop. Signed-off-by: Jouni Malinen --- diff --git a/src/radius/radius.c b/src/radius/radius.c index f3b645dca..e73eb1157 100644 --- a/src/radius/radius.c +++ b/src/radius/radius.c @@ -945,7 +945,6 @@ static u8 *radius_msg_get_vendor_attr(struct radius_msg *msg, u32 vendor, vhdr = (struct radius_attr_vendor *) pos; if (vhdr->vendor_length > left || vhdr->vendor_length < sizeof(*vhdr)) { - left = 0; break; } if (vhdr->vendor_type != subtype) {