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>
This commit is contained in:
parent
4aa01d38f5
commit
58b992489c
1 changed files with 0 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue