1
mirror of https://github.com/rapid7/metasploit-payloads synced 2025-01-02 11:36:22 +01:00

Fix accept call

This commit is contained in:
jvazquez-r7 2015-01-02 19:06:19 -06:00
parent 15be560e7b
commit cdae73a282

View File

@ -97,7 +97,7 @@ accept_connection(server_un *s, DWORD timeout) {
return ETIME;
}
len = sizeof(c->remote);
len = sizeof(struct sockaddr_un);
if ((c->socket = accept(s->socket, (struct sockaddr *)&(c->remote), &len)) == -1) {
dprintf("[UNIX SOCKET SERVER] accept failed");
return errno;