mirror of
https://github.com/rapid7/metasploit-payloads
synced 2025-03-24 18:16:24 +01:00
Fix accept call
This commit is contained in:
parent
15be560e7b
commit
cdae73a282
@ -97,7 +97,7 @@ accept_connection(server_un *s, DWORD timeout) {
|
|||||||
return ETIME;
|
return ETIME;
|
||||||
}
|
}
|
||||||
|
|
||||||
len = sizeof(c->remote);
|
len = sizeof(struct sockaddr_un);
|
||||||
if ((c->socket = accept(s->socket, (struct sockaddr *)&(c->remote), &len)) == -1) {
|
if ((c->socket = accept(s->socket, (struct sockaddr *)&(c->remote), &len)) == -1) {
|
||||||
dprintf("[UNIX SOCKET SERVER] accept failed");
|
dprintf("[UNIX SOCKET SERVER] accept failed");
|
||||||
return errno;
|
return errno;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user