From 24a5e528ce393faddc3e2d063b2c60c325127c01 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Fri, 28 Aug 2015 23:58:10 +0300 Subject: [PATCH] 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 --- src/wps/httpread.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/wps/httpread.c b/src/wps/httpread.c index d6c2b62..7a2ba50 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 */ -- 2.1.4