projects
/
mech_eap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
f79a197
)
WPS: Remove duplicated isgraph() loop in HTTP header parsing
author
Jouni Malinen
<j@w1.fi>
Fri, 28 Aug 2015 20:58:10 +0000
(23:58 +0300)
committer
Jouni 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
patch
|
blob
|
history
diff --git
a/src/wps/httpread.c
b/src/wps/httpread.c
index
d6c2b62
..
7a2ba50
100644
(file)
--- 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 */