aboutsummaryrefslogtreecommitdiffstats
path: root/src/radius
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2014-10-11 15:06:52 (GMT)
committerJouni Malinen <j@w1.fi>2014-10-11 15:06:52 (GMT)
commit58b992489c03755ab4df0a3f616dc3d67f8cb97a (patch)
tree56f6ef35de89d4709808b800ffe6e5c722130380 /src/radius
parent4aa01d38f53e3403ee8c8fe4a8d3f6e28bebf903 (diff)
downloadhostap-58b992489c03755ab4df0a3f616dc3d67f8cb97a.zip
hostap-58b992489c03755ab4df0a3f616dc3d67f8cb97a.tar.gz
hostap-58b992489c03755ab4df0a3f616dc3d67f8cb97a.tar.bz2
RADIUS: Remove unused write
There is no need to update the left variable when breaking out from the loop. Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'src/radius')
-rw-r--r--src/radius/radius.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/radius/radius.c b/src/radius/radius.c
index f3b645d..e73eb11 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) {