From 526e1dcd405f7ca94caa90c2f6520839f456eaf8 Mon Sep 17 00:00:00 2001 From: Thomas Bernard Date: Tue, 9 Dec 2014 11:38:50 +0100 Subject: [PATCH] miniupnpd/upnphttp.c: skip only spaces and tab (stop on CR and LF) --- miniupnpd/upnphttp.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/miniupnpd/upnphttp.c b/miniupnpd/upnphttp.c index a6dd865..1025e5d 100644 --- a/miniupnpd/upnphttp.c +++ b/miniupnpd/upnphttp.c @@ -1,4 +1,4 @@ -/* $Id: upnphttp.c,v 1.94 2014/12/09 09:46:45 nanard Exp $ */ +/* $Id: upnphttp.c,v 1.95 2014/12/09 10:38:02 nanard Exp $ */ /* Project : miniupnp * Website : http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/ * Author : Thomas Bernard @@ -304,7 +304,7 @@ ParseHttpHeaders(struct upnphttp * h) else if(strncasecmp(line, "SID", 3)==0) { p = colon + 1; - while(isspace(*p)) + while((*p == ' ') || (*p != '\t')) p++; n = 0; while(!isspace(p[n])) @@ -322,7 +322,7 @@ intervening space) by either an integer or the keyword "infinite". */ else if(strncasecmp(line, "Timeout", 7)==0) { p = colon + 1; - while(isspace(*p)) + while((*p == ' ') || (*p != '\t')) p++; if(strncasecmp(p, "Second-", 7)==0) { h->req_Timeout = atoi(p+7); @@ -332,7 +332,7 @@ intervening space) by either an integer or the keyword "infinite". */ else if(strncasecmp(line, "nt", 2)==0) { p = colon + 1; - while(isspace(*p)) + while((*p == ' ') || (*p == '\t')) p++; n = 0; while(!isspace(p[n]))