corrected the "fixed possible SIGSEGV" fix

This commit is contained in:
Gerhard Rieger 2009-05-05 22:34:05 +02:00
parent 7c2039ada8
commit 67a1060b49
3 changed files with 9 additions and 2 deletions

View file

@ -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 1.7.1.0: ####################### V 1.7.1.0:
new features: new features:

View file

@ -1 +1 @@
"1.7.1.0" "1.7.1.0-sigsegv"

View file

@ -219,8 +219,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)));