aboutsummaryrefslogtreecommitdiff
path: root/src/tcp.c
diff options
context:
space:
mode:
authorunknown <diego.nehab@gmail.com>2013-05-27 20:32:54 +0800
committerunknown <diego.nehab@gmail.com>2013-05-27 20:32:54 +0800
commit5e0b56b8d30c574c6519495ba3fcdd245d54f5a0 (patch)
treeedaf8ad1549fb1c0c4dc2de0bbdcf24b9a2e3462 /src/tcp.c
parent26704061a4e28eff573f02297e6da045d166afa4 (diff)
parentbd51d8c1a5bb30e6a358dee6e85963f777edfff4 (diff)
downloadluasocket-5e0b56b8d30c574c6519495ba3fcdd245d54f5a0.tar.gz
luasocket-5e0b56b8d30c574c6519495ba3fcdd245d54f5a0.tar.bz2
luasocket-5e0b56b8d30c574c6519495ba3fcdd245d54f5a0.zip
Merge branch 'moteus' of https://github.com/moteus/luasocket into moteus
Diffstat (limited to 'src/tcp.c')
-rw-r--r--src/tcp.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/tcp.c b/src/tcp.c
index ca8eec2..60c1e8a 100644
--- a/src/tcp.c
+++ b/src/tcp.c
@@ -222,7 +222,6 @@ static int meth_bind(lua_State *L)
222 bindhints.ai_socktype = SOCK_STREAM; 222 bindhints.ai_socktype = SOCK_STREAM;
223 bindhints.ai_family = tcp->family; 223 bindhints.ai_family = tcp->family;
224 bindhints.ai_flags = AI_PASSIVE; 224 bindhints.ai_flags = AI_PASSIVE;
225 address = strcmp(address, "*")? address: NULL;
226 err = inet_trybind(&tcp->sock, address, port, &bindhints); 225 err = inet_trybind(&tcp->sock, address, port, &bindhints);
227 if (err) { 226 if (err) {
228 lua_pushnil(L); 227 lua_pushnil(L);