diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/util/util_net.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/util/util_net.c b/lib/util/util_net.c index b537e59316..723c0002e4 100644 --- a/lib/util/util_net.c +++ b/lib/util/util_net.c @@ -35,7 +35,7 @@ void zero_sockaddr(struct sockaddr_storage *pss) { - memset(pss, '\0', sizeof(*pss)); + ZERO_STRUCTP(pss); /* Ensure we're at least a valid sockaddr-storage. */ pss->ss_family = AF_INET; } |