diff options
author | unknown <diego.nehab@gmail.com> | 2013-05-27 20:32:54 +0800 |
---|---|---|
committer | unknown <diego.nehab@gmail.com> | 2013-05-27 20:32:54 +0800 |
commit | 5e0b56b8d30c574c6519495ba3fcdd245d54f5a0 (patch) | |
tree | edaf8ad1549fb1c0c4dc2de0bbdcf24b9a2e3462 /src/tcp.c | |
parent | 26704061a4e28eff573f02297e6da045d166afa4 (diff) | |
parent | bd51d8c1a5bb30e6a358dee6e85963f777edfff4 (diff) | |
download | luasocket-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.c | 1 |
1 files changed, 0 insertions, 1 deletions
@@ -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); |