X-Git-Url: http://git.samba.org/samba.git/?a=blobdiff_plain;f=lib%2Futil%2Futil_net.c;fp=lib%2Futil%2Futil_net.c;h=98eef3bd8bc3f1f1e310a25110d0826b4ef760d3;hb=115d0ecf88a5cae2d684264f570892fb763d54d2;hp=7d678c9b149b28e49f39776b7b25db6e1dc6dd5f;hpb=f1cdce6c135574bd0552f1e368c9b47daf633c73;p=kai%2Fsamba.git diff --git a/lib/util/util_net.c b/lib/util/util_net.c index 7d678c9b149..98eef3bd8bc 100644 --- a/lib/util/util_net.c +++ b/lib/util/util_net.c @@ -405,7 +405,7 @@ bool is_zero_addr(const struct sockaddr_storage *pss) */ void zero_ip_v4(struct in_addr *ip) { - memset(ip, '\0', sizeof(struct in_addr)); + ZERO_STRUCTP(ip); } /** @@ -415,7 +415,7 @@ void in_addr_to_sockaddr_storage(struct sockaddr_storage *ss, struct in_addr ip) { struct sockaddr_in *sa = (struct sockaddr_in *)ss; - memset(ss, '\0', sizeof(*ss)); + ZERO_STRUCTP(ss); sa->sin_family = AF_INET; sa->sin_addr = ip; }