Bugifx double free client.buf

This commit is contained in:
2020-12-29 11:50:23 +01:00
parent 798c41f1c8
commit 0db781e823

View File

@ -421,6 +421,7 @@ int client_request_handler(sock *client, unsigned long client_num, unsigned int
http_free_res(&res);
if (client->buf != NULL) {
free(client->buf);
client->buf = NULL;
client->buf_off = 0;
client->buf_len = 0;
}