mirror of
https://github.com/curl/curl.git
synced 2026-05-30 10:17:28 +03:00
Moved the NULL check for channel upwards in ares_destroy().
This commit is contained in:
parent
45c6db9ac4
commit
81249965f7
1 changed files with 3 additions and 3 deletions
|
|
@ -40,6 +40,9 @@ void ares_destroy(ares_channel channel)
|
|||
struct query *query;
|
||||
struct list_node* list_head;
|
||||
struct list_node* list_node;
|
||||
|
||||
if (!channel)
|
||||
return;
|
||||
|
||||
list_head = &(channel->all_queries);
|
||||
for (list_node = list_head->next; list_node != list_head; )
|
||||
|
|
@ -64,9 +67,6 @@ void ares_destroy(ares_channel channel)
|
|||
}
|
||||
#endif
|
||||
|
||||
if (!channel)
|
||||
return;
|
||||
|
||||
if (channel->servers) {
|
||||
for (i = 0; i < channel->nservers; i++)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue