summaryrefslogtreecommitdiff
blob: e68b00576cdb16b40c52ec0b97bafd61a6d6072a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/inaddr.cpp b/src/inaddr.cpp
index 5a4b9c4..50127f3 100644
--- a/src/inaddr.cpp
+++ b/src/inaddr.cpp
@@ -333,7 +333,7 @@ void IPV4Address::setAddress(const char *host)
             if(ipaddr)
                 delete[] ipaddr;
             ipaddr = new struct in_addr[1];
-            memset((void *)&ipaddr[0], 0, sizeof(ipaddr));
+            memset((void *)&ipaddr[0], 0, sizeof(*ipaddr));
             return;
         }