mirror of
https://repo.or.cz/socat.git
synced 2025-01-09 14:32:33 +00:00
corrected the "fixed possible SIGSEGV" fix
This commit is contained in:
parent
bcadefeda7
commit
9b09003643
2 changed files with 8 additions and 1 deletions
5
CHANGES
5
CHANGES
|
@ -1,4 +1,9 @@
|
||||||
|
|
||||||
|
corrections:
|
||||||
|
corrected the "fixed possible SIGSEGV" fix because SIGSEGV still might
|
||||||
|
occur under those conditions. Thanks to Toni Mattila for first
|
||||||
|
reporting this problem.
|
||||||
|
|
||||||
####################### V 2.0.0-b7:
|
####################### V 2.0.0-b7:
|
||||||
|
|
||||||
security:
|
security:
|
||||||
|
|
|
@ -226,8 +226,10 @@ int _xioopen_listen(struct single *xfd, int xioflags, struct sockaddr *us, sockl
|
||||||
char peername[256];
|
char peername[256];
|
||||||
char sockname[256];
|
char sockname[256];
|
||||||
int ps; /* peer socket */
|
int ps; /* peer socket */
|
||||||
salen = sizeof(struct sockaddr);
|
|
||||||
|
|
||||||
|
pa = &_peername;
|
||||||
|
la = &_sockname;
|
||||||
|
salen = sizeof(struct sockaddr);
|
||||||
do {
|
do {
|
||||||
/*? int level = E_ERROR;*/
|
/*? int level = E_ERROR;*/
|
||||||
Notice1("listening on %s", sockaddr_info(us, uslen, lisname, sizeof(lisname)));
|
Notice1("listening on %s", sockaddr_info(us, uslen, lisname, sizeof(lisname)));
|
||||||
|
|
Loading…
Reference in a new issue