WPS ER: Fix SSDP CACHE-CONTROL line parser
authorJouni Malinen <j@w1.fi>
Sat, 15 Aug 2015 19:24:15 +0000 (22:24 +0300)
committerJouni Malinen <j@w1.fi>
Sat, 15 Aug 2015 19:24:15 +0000 (22:24 +0300)
commit56906d06c79a9ce0f09dc1d2732edd6f68ea2691
tree8ce85032feba243e4daf48979a280a1b89e30a3e
parent6e9220160c517d9d155ad2c192437a212ba64594
WPS ER: Fix SSDP CACHE-CONTROL line parser

Incorrect number of bytes was skipped from the beginning of the line
which resulted in the loop skipping spaces doing nothing. However, the
following operation was simply looking for the max-age parameter with
os_strstr(), so this did not have any effect on functionality. Fix the
number of bytes to skip and remove the unneeded loop to skip spaces.

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