summaryrefslogtreecommitdiff
path: root/protocols/Gadu-Gadu/src/libgadu/common.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Gadu-Gadu/src/libgadu/common.cpp')
-rw-r--r--protocols/Gadu-Gadu/src/libgadu/common.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/protocols/Gadu-Gadu/src/libgadu/common.cpp b/protocols/Gadu-Gadu/src/libgadu/common.cpp
index 07e6a2646b..3ca168abee 100644
--- a/protocols/Gadu-Gadu/src/libgadu/common.cpp
+++ b/protocols/Gadu-Gadu/src/libgadu/common.cpp
@@ -293,6 +293,7 @@ SOCKET gg_connect(void *addr, int port, int async)
}
}
+ memset(&sin, 0, sizeof(sin));
sin.sin_port = htons((uint16_t)port);
sin.sin_family = AF_INET;
sin.sin_addr.s_addr = a->s_addr;