From: Jouni Malinen Date: Fri, 28 Aug 2015 20:58:10 +0000 (+0300) Subject: WPS: Remove duplicated isgraph() loop in HTTP header parsing X-Git-Tag: hostap_2_5~94 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=24a5e528ce393faddc3e2d063b2c60c325127c01;p=thirdparty%2Fhostap.git 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 --- diff --git a/src/wps/httpread.c b/src/wps/httpread.c index d6c2b62ae..7a2ba50a9 100644 --- a/src/wps/httpread.c +++ b/src/wps/httpread.c @@ -278,8 +278,6 @@ static int httpread_hdr_analyze(struct httpread *h) } } *uri = 0; /* null terminate */ - while (isgraph(*hbp)) - hbp++; while (*hbp == ' ' || *hbp == '\t') hbp++; /* get version */