WPS: Remove duplicated isgraph() loop in HTTP header parsing

The hbp pointer is moved to the next space already earlier in this code
path, so the while loop here did not really do anything.

Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
Jouni Malinen 2015-08-28 23:58:10 +03:00
parent f79a19746a
commit 24a5e528ce

View file

@ -278,8 +278,6 @@ static int httpread_hdr_analyze(struct httpread *h)
} }
} }
*uri = 0; /* null terminate */ *uri = 0; /* null terminate */
while (isgraph(*hbp))
hbp++;
while (*hbp == ' ' || *hbp == '\t') while (*hbp == ' ' || *hbp == '\t')
hbp++; hbp++;
/* get version */ /* get version */