1.3 revision 454 strsep() function has a bug which
will cause valid parse with evhttp_parse_request_line while do strcmp to
method version and uri.
--- http.c (revision 454)
+++ http.c (working copy)
@@ -147,9 +158,14 @@
tok = *s;
d = strstr(tok, del);
if (d)
+ {
+ *s = '\0';//terminate the string whith NULL.
*s = d + strlen(del);
+ }
else
+ {
*s = NULL;
+ }
return tok;
}
#endif
Chen shaowei
---------------------------------
雅虎邮箱,终生伙伴! _______________________________________________
Libevent-users mailing list
[email protected]
http://monkey.org/mailman/listinfo/libevent-users