Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/agent/tcf
diff options
context:
space:
mode:
authorEugene Tarassov2019-12-11 17:24:54 +0000
committerEugene Tarassov2019-12-11 17:24:54 +0000
commit3d38f2bbb8496329b69d3344fcf7e399d1207b59 (patch)
treee60a621e1a858ae43267a5d848b3905b5558d552 /agent/tcf
parent18e58df09276fe569df1e5357ddd1dc8df6b4b6d (diff)
downloadorg.eclipse.tcf.agent-3d38f2bbb8496329b69d3344fcf7e399d1207b59.tar.gz
org.eclipse.tcf.agent-3d38f2bbb8496329b69d3344fcf7e399d1207b59.tar.xz
org.eclipse.tcf.agent-3d38f2bbb8496329b69d3344fcf7e399d1207b59.zip
TCF Agent: Fixed regression from previous commit in read_http_request()
Diffstat (limited to 'agent/tcf')
-rw-r--r--agent/tcf/http/http.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/agent/tcf/http/http.c b/agent/tcf/http/http.c
index 4889a54c..37dfbc8c 100644
--- a/agent/tcf/http/http.c
+++ b/agent/tcf/http/http.c
@@ -329,12 +329,12 @@ static void read_http_request(HttpConnection * con) {
unsigned l = j;
char * s = buf + j;
while (j < i && buf[j] > ' ') j++;
- while (j < i && buf[j] <= ' ') j++;
switch (k++) {
case 0: con->http_method = loc_strndup(s, j - l); break;
case 1: con->http_uri = loc_strndup(s, j - l); break;
case 2: con->http_ver = loc_strndup(s, j - l); break;
}
+ while (j < i && buf[j] <= ' ') j++;
}
}
else {

Back to the top