diff --git a/src/obfs_http.c b/src/obfs_http.c index 30eae6b..3abf31d 100644 --- a/src/obfs_http.c +++ b/src/obfs_http.c @@ -244,9 +244,10 @@ check_http_header(buffer_t *buf) break; } - result = OBFS_ERROR; if (strncasecmp(hostname, obfs_http->host, len) == 0) { result = OBFS_OK; + } else { + result = OBFS_ERROR; } free(hostname); return result;