Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

static int zklua_get_connected_host(lua_State *L) #25

Open
linyouhappy opened this issue Dec 17, 2018 · 0 comments
Open

static int zklua_get_connected_host(lua_State *L) #25

linyouhappy opened this issue Dec 17, 2018 · 0 comments

Comments

@linyouhappy
Copy link

struct sockaddr saddr;
socklen_t socklen = 0;

change like this:
struct sockaddr saddr;
socklen_t socklen = sizeof(saddr);
bzero(&saddr, sizeof(saddr));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant