]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
RADIUS: Remove unused write
authorJouni Malinen <j@w1.fi>
Sat, 11 Oct 2014 15:06:52 +0000 (18:06 +0300)
committerJouni Malinen <j@w1.fi>
Sat, 11 Oct 2014 15:06:52 +0000 (18:06 +0300)
There is no need to update the left variable when breaking out from the
loop.

Signed-off-by: Jouni Malinen <j@w1.fi>
src/radius/radius.c

index f3b645dcaaafab0648629c9074e32a8bcb03c5e5..e73eb1157ef2907e326ee78dab52d2b4b72cfaa5 100644 (file)
@@ -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) {