I am pretty sorry that the last patch I posted is not correct.
this one will sovlve it.
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)
+ {
+ *d = '\0';//terminate the string whith NULL.
*s = d + strlen( del );
+ }
else
+ {
*s = NULL;
+ }
return tok;
}
#endif
Chen shaowei
---------------------------------
@yahoo.cn 新域名、无限量,快来抢注!
_______________________________________________
Libevent-users mailing list
Libevent-users@monkey.org
http://monkey.org/mailman/listinfo/libevent-users