diff options
| author | Diego Nehab <diego@impa.br> | 2013-05-28 01:54:49 +0800 |
|---|---|---|
| committer | Diego Nehab <diego@impa.br> | 2013-05-28 01:54:49 +0800 |
| commit | 27fd725c6d697b2e284b830ba989be2431147485 (patch) | |
| tree | 05affb44439b27b3ad15ea20d8cebfaec4fe561d | |
| parent | 734cc23e1f03372314ebad07ffd35117c152afcd (diff) | |
| download | luasocket-27fd725c6d697b2e284b830ba989be2431147485.tar.gz luasocket-27fd725c6d697b2e284b830ba989be2431147485.tar.bz2 luasocket-27fd725c6d697b2e284b830ba989be2431147485.zip | |
Typo fixed.
| -rw-r--r-- | src/udp.c | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -170,7 +170,7 @@ static int meth_sendto(lua_State *L) { | |||
| 170 | case PF_INET6: { | 170 | case PF_INET6: { |
| 171 | struct sockaddr_in6 addr; | 171 | struct sockaddr_in6 addr; |
| 172 | memset(&addr, 0, sizeof(addr)); | 172 | memset(&addr, 0, sizeof(addr)); |
| 173 | if (!inet_pton(AF_INET6, ip, &addr.sin6_addr) != 1) | 173 | if (inet_pton(AF_INET6, ip, &addr.sin6_addr) != 1) |
| 174 | luaL_argerror(L, 3, "invalid ip address"); | 174 | luaL_argerror(L, 3, "invalid ip address"); |
| 175 | addr.sin6_family = AF_INET6; | 175 | addr.sin6_family = AF_INET6; |
| 176 | addr.sin6_port = htons(port); | 176 | addr.sin6_port = htons(port); |
