WPS: Remove duplicated isgraph() loop in HTTP header parsing
authorJouni Malinen <j@w1.fi>
Fri, 28 Aug 2015 20:58:10 +0000 (23:58 +0300)
committerJouni Malinen <j@w1.fi>
Fri, 28 Aug 2015 20:59:28 +0000 (23:59 +0300)
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>
src/wps/httpread.c

index d6c2b62..7a2ba50 100644 (file)
@@ -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 */