aboutsummaryrefslogtreecommitdiff
path: root/src/udp.c
diff options
context:
space:
mode:
authorDiego Nehab <diego@impa.br>2013-05-26 21:26:26 +0800
committerDiego Nehab <diego@impa.br>2013-05-26 21:26:26 +0800
commit427220c7b177cdae2379ac419d975c69764ba8ee (patch)
treeb2690db3cb9cde4505ad51eaac83d3fe4a854ff5 /src/udp.c
parent6d93fd7c8f04fecbcdc28994da8b8357f712463f (diff)
downloadluasocket-427220c7b177cdae2379ac419d975c69764ba8ee.tar.gz
luasocket-427220c7b177cdae2379ac419d975c69764ba8ee.tar.bz2
luasocket-427220c7b177cdae2379ac419d975c69764ba8ee.zip
Merge tryconnect6 into inet_tryconnect.
Diffstat (limited to 'src/udp.c')
-rw-r--r--src/udp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/udp.c b/src/udp.c
index 6e0de9f..2a51d1c 100644
--- a/src/udp.c
+++ b/src/udp.c
@@ -376,7 +376,8 @@ static int meth_setpeername(lua_State *L) {
376 /* make sure we try to connect only to the same family */ 376 /* make sure we try to connect only to the same family */
377 connecthints.ai_family = udp->family; 377 connecthints.ai_family = udp->family;
378 if (connecting) { 378 if (connecting) {
379 err = inet_tryconnect(&udp->sock, address, port, tm, &connecthints); 379 err = inet_tryconnect(&udp->sock, &udp->family, address,
380 port, tm, &connecthints);
380 if (err) { 381 if (err) {
381 lua_pushnil(L); 382 lua_pushnil(L);
382 lua_pushstring(L, err); 383 lua_pushstring(L, err);