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