mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-28 18:28:23 -05:00
WPS: Remove duplicate variable setting
There is no need to use a for loop here since the h variable is set identically at the beginning of the body anyway. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
78789d95b4
commit
3b6170b78d
@ -946,7 +946,7 @@ static void web_connection_parse_subscribe(struct upnp_wps_device_sm *sm,
|
|||||||
wpa_printf(MSG_DEBUG, "WPS UPnP: HTTP SUBSCRIBE for event");
|
wpa_printf(MSG_DEBUG, "WPS UPnP: HTTP SUBSCRIBE for event");
|
||||||
end = os_strchr(h, '\n');
|
end = os_strchr(h, '\n');
|
||||||
|
|
||||||
for (; end != NULL; h = end + 1) {
|
while (end) {
|
||||||
/* Option line by option line */
|
/* Option line by option line */
|
||||||
h = end + 1;
|
h = end + 1;
|
||||||
end = os_strchr(h, '\n');
|
end = os_strchr(h, '\n');
|
||||||
@ -1153,7 +1153,7 @@ static void web_connection_parse_unsubscribe(struct upnp_wps_device_sm *sm,
|
|||||||
wpa_printf(MSG_DEBUG, "WPS UPnP: HTTP UNSUBSCRIBE for event");
|
wpa_printf(MSG_DEBUG, "WPS UPnP: HTTP UNSUBSCRIBE for event");
|
||||||
end = os_strchr(h, '\n');
|
end = os_strchr(h, '\n');
|
||||||
|
|
||||||
for (; end != NULL; h = end + 1) {
|
while (end) {
|
||||||
/* Option line by option line */
|
/* Option line by option line */
|
||||||
h = end + 1;
|
h = end + 1;
|
||||||
end = os_strchr(h, '\n');
|
end = os_strchr(h, '\n');
|
||||||
|
Loading…
Reference in New Issue
Block a user