summaryrefslogtreecommitdiffstats
path: root/contrib/wpa/src/wps/wps_er_ssdp.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/wpa/src/wps/wps_er_ssdp.c')
-rw-r--r--contrib/wpa/src/wps/wps_er_ssdp.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/contrib/wpa/src/wps/wps_er_ssdp.c b/contrib/wpa/src/wps/wps_er_ssdp.c
index e381fec..280b2b3 100644
--- a/contrib/wpa/src/wps/wps_er_ssdp.c
+++ b/contrib/wpa/src/wps/wps_er_ssdp.c
@@ -78,9 +78,7 @@ static void wps_er_ssdp_rx(int sd, void *eloop_ctx, void *sock_ctx)
if (os_strstr(start, "ssdp:byebye"))
byebye = 1;
} else if (os_strncasecmp(start, "CACHE-CONTROL:", 14) == 0) {
- start += 9;
- while (*start == ' ')
- start++;
+ start += 14;
pos2 = os_strstr(start, "max-age=");
if (pos2 == NULL)
continue;
OpenPOWER on IntegriCloud