aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2015-08-28 20:58:10 (GMT)
committerJouni Malinen <j@w1.fi>2015-08-28 20:59:28 (GMT)
commit24a5e528ce393faddc3e2d063b2c60c325127c01 (patch)
tree5ee96971ed15bc27edd8773f015a5969f286eac8 /src
parentf79a19746a4bdc1a9ae3d802eb10bc8398bc9e23 (diff)
downloadhostap-24a5e528ce393faddc3e2d063b2c60c325127c01.zip
hostap-24a5e528ce393faddc3e2d063b2c60c325127c01.tar.gz
hostap-24a5e528ce393faddc3e2d063b2c60c325127c01.tar.bz2
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>
Diffstat (limited to 'src')
-rw-r--r--src/wps/httpread.c2
1 files changed, 0 insertions, 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 */