From: Jean-Marc Pigeon (Delson) Date: Wed, 31 Jul 2024 14:02:23 +0000 (-0400) Subject: Adjusting soc_accept X-Git-Tag: tag-0.4~38 X-Git-Url: https://jmp-git.ovh.safe.ca/?a=commitdiff_plain;h=fda1b6de8ddba8282c9d490bcd976dd8a361617e;p=jmp%2Fmailleur Adjusting soc_accept --- diff --git a/lib/unisoc.c b/lib/unisoc.c index 4dc707c..1260fc6 100644 --- a/lib/unisoc.c +++ b/lib/unisoc.c @@ -420,7 +420,7 @@ socklen_t taille; newhandle=-1; taille=sizeof(struct sockaddr); -if ((newhandle=accept(binding->handle,NULL,NULL))<0) { +if ((newhandle=accept(binding->handle,addr,&taille))<0) { if (errno==EAGAIN) errno=EWOULDBLOCK; switch (errno) {