aboutsummaryrefslogtreecommitdiff
path: root/libsylph/socket.c
diff options
context:
space:
mode:
Diffstat (limited to 'libsylph/socket.c')
-rw-r--r--libsylph/socket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libsylph/socket.c b/libsylph/socket.c
index d2b55c13..6005f3cf 100644
--- a/libsylph/socket.c
+++ b/libsylph/socket.c
@@ -941,7 +941,7 @@ static int my_getaddrinfo(const char *node, const char *service,
}
ai = g_malloc0(sizeof(struct addrinfo));
- paddr = g_malloc0(sizeof(struct sockaddr_in));
+ paddr = g_malloc(sizeof(struct sockaddr_in));
memcpy(paddr, &addr, sizeof(struct sockaddr_in));
ai->ai_flags = 0;