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:
parent
8e31c4e69c
commit
ed263ef47c
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user