mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +03:00
Make use of ZERO_STRUCT instead of memset in namequery.c
This commit is contained in:
parent
3b4a402bc5
commit
4f1d49615e
@ -1270,7 +1270,7 @@ static NTSTATUS resolve_hosts(const char *name, int name_type,
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
memset(&ss, '\0', sizeof(ss));
|
ZERO_STRUCT(ss);
|
||||||
memcpy(&ss, res->ai_addr, res->ai_addrlen);
|
memcpy(&ss, res->ai_addr, res->ai_addrlen);
|
||||||
|
|
||||||
*return_count += 1;
|
*return_count += 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user