diff options
author | Dan Winship <danw@gnome.org> | 2009-08-17 13:20:49 -0400 |
---|---|---|
committer | Dan Winship <danw@gnome.org> | 2009-08-17 13:20:49 -0400 |
commit | 8f6d26e9647db4e5f2336319e1b0ae439f54b75d (patch) | |
tree | 26dee757a60cfaff4db711cd8afb6826ddcd09ef /gio | |
parent | aa5293612f2eb0a6a02fbf74eb56bbf05faba8df (diff) |
g_inet_socket_address_to_native: properly zero out sockaddr_in6
Diffstat (limited to 'gio')
-rw-r--r-- | gio/ginetsocketaddress.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gio/ginetsocketaddress.c b/gio/ginetsocketaddress.c index b57ff68e1..3fc584a30 100644 --- a/gio/ginetsocketaddress.c +++ b/gio/ginetsocketaddress.c @@ -200,7 +200,7 @@ g_inet_socket_address_to_native (GSocketAddress *address, return FALSE; } - memset (sock, 0, sizeof (sock)); + memset (sock, 0, sizeof (*sock)); sock->sin6_family = AF_INET6; sock->sin6_port = g_htons (addr->priv->port); memcpy (&(sock->sin6_addr.s6_addr), g_inet_address_to_bytes (addr->priv->address), sizeof (sock->sin6_addr)); |