[Asterisk-cvs] asterisk acl.c,1.32,1.33
markster at lists.digium.com
markster at lists.digium.com
Tue Dec 28 02:49:16 CST 2004
Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv10035
Modified Files:
acl.c
Log Message:
Fix leak of file descriptors in odd networking situations
Index: acl.c
===================================================================
RCS file: /usr/cvsroot/asterisk/acl.c,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -d -r1.32 -r1.33
--- acl.c 18 Dec 2004 21:54:58 -0000 1.32
+++ acl.c 28 Dec 2004 07:44:13 -0000 1.33
@@ -259,11 +259,13 @@
sin.sin_addr = *them;
if (connect(s, (struct sockaddr *)&sin, sizeof(sin))) {
ast_log(LOG_WARNING, "Cannot connect\n");
+ close(s);
return -1;
}
slen = sizeof(sin);
if (getsockname(s, (struct sockaddr *)&sin, &slen)) {
ast_log(LOG_WARNING, "Cannot get socket name\n");
+ close(s);
return -1;
}
close(s);
More information about the svn-commits
mailing list