Fix file descriptor leak.
Submitted by: Charles Mott <cmott@srv.net> Identified by: Gordon Burditt
This commit is contained in:
parent
7fb359d245
commit
4fe071a9f7
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=28084
@ -103,3 +103,10 @@ Version 2.2: July, 1997 (cjm)
|
||||
fragments which are never resolved after a timeout
|
||||
period. Once a fragment is resolved, it becomes
|
||||
the users responsibility to free the memory.
|
||||
|
||||
Version 2.3: August 11, 1997 (cjm)
|
||||
- Problem associated with socket file descriptor
|
||||
accumulation in alias_db.c corrected. The sockets
|
||||
had to be closed when a binding failed. Problem
|
||||
identified by Gordon Burditt.
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
LIB= alias
|
||||
SHLIB_MAJOR= 2
|
||||
SHLIB_MINOR= 2
|
||||
SHLIB_MINOR= 3
|
||||
CFLAGS+=-Wall -I${.CURDIR}
|
||||
SRCS= alias.c alias_db.c alias_ftp.c alias_irc.c alias_util.c alias_old.c
|
||||
MAN3=libalias.3
|
||||
|
@ -616,6 +616,7 @@ GetSocket(u_short port_net, int *sockfd, int link_type)
|
||||
}
|
||||
else
|
||||
{
|
||||
close(sock);
|
||||
return(0);
|
||||
}
|
||||
}
|
||||
|
@ -568,7 +568,7 @@ of data including its checksum. If the checksum is
|
||||
valid, PacketAliasInternetChecksum() will return zero.
|
||||
|
||||
.Sh 7. Authors
|
||||
Charles Mott (cmott@srv.net), versions 1.0 - 1.8, 2.0 - 2.2.
|
||||
Charles Mott (cmott@srv.net), versions 1.0 - 1.8, 2.0 - 2.3.
|
||||
|
||||
Eivind Eiklund (eivind@freebsd.org), versions 1.8b and 1.9.
|
||||
Added IRC support as well as contributing a number of
|
||||
@ -591,6 +591,7 @@ valuable comments and/or debugging assistance.
|
||||
.It Dave Remien
|
||||
.It J. Fortes
|
||||
.It Andrzej Bialeki
|
||||
.It Gordon Burditt
|
||||
.El
|
||||
|
||||
.Sh Appendix: Conceptual Background
|
||||
|
@ -103,3 +103,10 @@ Version 2.2: July, 1997 (cjm)
|
||||
fragments which are never resolved after a timeout
|
||||
period. Once a fragment is resolved, it becomes
|
||||
the users responsibility to free the memory.
|
||||
|
||||
Version 2.3: August 11, 1997 (cjm)
|
||||
- Problem associated with socket file descriptor
|
||||
accumulation in alias_db.c corrected. The sockets
|
||||
had to be closed when a binding failed. Problem
|
||||
identified by Gordon Burditt.
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
LIB= alias
|
||||
SHLIB_MAJOR= 2
|
||||
SHLIB_MINOR= 2
|
||||
SHLIB_MINOR= 3
|
||||
CFLAGS+=-Wall -I${.CURDIR}
|
||||
SRCS= alias.c alias_db.c alias_ftp.c alias_irc.c alias_util.c alias_old.c
|
||||
MAN3=libalias.3
|
||||
|
@ -616,6 +616,7 @@ GetSocket(u_short port_net, int *sockfd, int link_type)
|
||||
}
|
||||
else
|
||||
{
|
||||
close(sock);
|
||||
return(0);
|
||||
}
|
||||
}
|
||||
|
@ -568,7 +568,7 @@ of data including its checksum. If the checksum is
|
||||
valid, PacketAliasInternetChecksum() will return zero.
|
||||
|
||||
.Sh 7. Authors
|
||||
Charles Mott (cmott@srv.net), versions 1.0 - 1.8, 2.0 - 2.2.
|
||||
Charles Mott (cmott@srv.net), versions 1.0 - 1.8, 2.0 - 2.3.
|
||||
|
||||
Eivind Eiklund (eivind@freebsd.org), versions 1.8b and 1.9.
|
||||
Added IRC support as well as contributing a number of
|
||||
@ -591,6 +591,7 @@ valuable comments and/or debugging assistance.
|
||||
.It Dave Remien
|
||||
.It J. Fortes
|
||||
.It Andrzej Bialeki
|
||||
.It Gordon Burditt
|
||||
.El
|
||||
|
||||
.Sh Appendix: Conceptual Background
|
||||
|
Loading…
Reference in New Issue
Block a user