From 8f821880fc73f930dba2a5fc0f02d6bb4f3f1280 Mon Sep 17 00:00:00 2001 From: mom040267 Date: Tue, 17 Mar 2015 05:59:21 +0000 Subject: [PATCH] c++ fixes --- src/apps/stunclient/stunclient.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/apps/stunclient/stunclient.c b/src/apps/stunclient/stunclient.c index eb1029c7..5f6e0054 100644 --- a/src/apps/stunclient/stunclient.c +++ b/src/apps/stunclient/stunclient.c @@ -67,7 +67,7 @@ static int run_stunclient(const char* rip, int rport, int *port, int *rfc5780, i err(-1, NULL); if (!addr_any(&real_local_addr)) { - if (addr_bind(udp_fd, &real_local_addr,0) < 0) + if (addr_bind(udp_fd, &real_local_addr,0,1) < 0) err(-1, NULL); } } @@ -80,7 +80,7 @@ static int run_stunclient(const char* rip, int rport, int *port, int *rfc5780, i addr_set_port(&real_local_addr, response_port); - if (addr_bind(new_udp_fd, &real_local_addr, 0) < 0) + if (addr_bind(new_udp_fd, &real_local_addr, 0, 1) < 0) err(-1, NULL); }