Parcourir la source

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>
Jouni Malinen il y a 9 ans
Parent
commit
24a5e528ce
1 fichiers modifiés avec 0 ajouts et 2 suppressions
  1. 0 2
      src/wps/httpread.c

+ 0 - 2
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 */