Skip to content

Commit

Permalink
Fix use-after-free, GitHub issue 126.
Browse files Browse the repository at this point in the history
  • Loading branch information
nicm committed Apr 3, 2023
1 parent f1ec198 commit 028f59b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion connect.c
Original file line number Diff line number Diff line change
Expand Up @@ -550,8 +550,8 @@ httpproxy(struct server *srv,
if (strlen(line) < 12 ||
strncmp(line, "HTTP/", 5) != 0 ||
strncmp(line + 8, " 200", 4) != 0) {
xfree(line);
xasprintf(cause, "unexpected data: %s", line);
xfree(line);
return (-1);
}
header = 1;
Expand Down

0 comments on commit 028f59b

Please sign in to comment.