1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

libsmb: README.Coding for resolve_hosts()

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Volker Lendecke 2020-09-22 13:49:10 +02:00 committed by Jeremy Allison
parent 8e31c4e69c
commit ed263ef47c

View File

@ -2820,7 +2820,7 @@ static NTSTATUS resolve_hosts(TALLOC_CTX *mem_ctx,
for (res = ailist; res; res = res->ai_next) {
struct sockaddr_storage ss = {0};
if (!res->ai_addr || res->ai_addrlen == 0) {
if ((res->ai_addr == NULL) || (res->ai_addrlen == 0)) {
continue;
}