summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKoichiro IWAO <meta@vmeta.jp>2017-07-10 10:40:20 +0900
committermetalefty <meta@vmeta.jp>2017-07-10 11:58:10 +0900
commit8c74fcb80c46e8b554c5ba34f4db0f366cf54ae3 (patch)
tree97f7a43131699bdd14c1ad3b7f2c73d20ecb067b
parent73a37a544151a2fbb9fa9295f77b34e3f80288bb (diff)
downloadxrdp-proprietary-8c74fcb80c46e8b554c5ba34f4db0f366cf54ae3.tar.gz
xrdp-proprietary-8c74fcb80c46e8b554c5ba34f4db0f366cf54ae3.zip
common: fix a glitch with IPv4 struct initialization
Pointed out by: andrecbarros Closes: #803
-rw-r--r--common/os_calls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/os_calls.c b/common/os_calls.c
index d20dc49f..59dccbb5 100644
--- a/common/os_calls.c
+++ b/common/os_calls.c
@@ -1012,7 +1012,7 @@ bind_loopback(int sck, const char *port)
errno6 = errno;
// else IPv4
- g_memset(&sa, 0, sizeof(s));
+ g_memset(&s, 0, sizeof(s));
s.sin_family = AF_INET;
s.sin_addr.s_addr = htonl(INADDR_LOOPBACK); // IPv4 127.0.0.1
s.sin_port = htons((tui16)atoi(port));