This commit is contained in:
Andrew Kistler 2022-12-05 21:38:43 +08:00 committed by GitHub
commit 894b3011bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

View File

@ -586,7 +586,7 @@ http_parser_parse_url(const char *buf, size_t buflen, int is_connect,
break; break;
default: default:
assert(!"Unexpected state"); assert("Unexpected state" != NULL);
return 1; return 1;
} }
@ -624,9 +624,8 @@ http_parser_parse_url(const char *buf, size_t buflen, int is_connect,
if (u->field_set & (1 << UF_PORT)) { if (u->field_set & (1 << UF_PORT)) {
uint16_t off; uint16_t off;
uint16_t len; uint16_t len;
const char* p;
const char* end; const char* end;
unsigned long v; signed long v;
off = u->field_data[UF_PORT].off; off = u->field_data[UF_PORT].off;
len = u->field_data[UF_PORT].len; len = u->field_data[UF_PORT].len;