Fix crash issue caused by unknown http response
This commit is contained in:
@@ -1774,7 +1774,9 @@ static int _dns_client_process_tcp(struct dns_server_info *server_info, struct e
|
|||||||
|
|
||||||
len = http_head_parse(http_head, (char *)server_info->recv_buff.data, server_info->recv_buff.len);
|
len = http_head_parse(http_head, (char *)server_info->recv_buff.data, server_info->recv_buff.len);
|
||||||
if (len < 0) {
|
if (len < 0) {
|
||||||
|
tlog(TLOG_DEBUG, "remote server not supported.");
|
||||||
http_head_destroy(http_head);
|
http_head_destroy(http_head);
|
||||||
|
http_head = NULL;
|
||||||
if (len == -1) {
|
if (len == -1) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user