Fixed DNS SRV response processing when SRV entries contain the same host (#3531)

This commit is contained in:
sauwming 2023-05-01 09:02:05 +08:00 committed by GitHub
parent f3a261345f
commit 27d522d91d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -385,7 +385,11 @@ static void build_server_entries(pj_dns_srv_async_query *query_job,
++query_job->host_resolved;
++query_job->srv[j].addr_cnt;
break;
/* Continue the loop as other SRV entries may contain
* the same host.
*/
// break;
}
}