Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Chiya committed Jul 2, 2018
1 parent af050bd commit 0714bc3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/obfs_http.c
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 198,7 @@ check_http_header(buffer_t *buf)

if (len < 4)
return OBFS_NEED_MORE;
int method_len = sizeof(obfs_http->method);
if (strncasecmp(data, obfs_http->method, method_len) != 0)
if (strncasecmp(data, obfs_http->method, strlen(obfs_http->method)) != 0)
return OBFS_ERROR;

{
Expand Down

0 comments on commit 0714bc3

Please sign in to comment.