[Asterisk-cvs] asterisk/pbx pbx_dundi.c,1.18,1.19

markster at lists.digium.com markster at lists.digium.com
Thu Nov 11 09:38:55 CST 2004


Update of /usr/cvsroot/asterisk/pbx
In directory mongoose.digium.com:/tmp/cvs-serv2476/pbx

Modified Files:
	pbx_dundi.c 
Log Message:
Fix leaky fd issue (bug #2832)


Index: pbx_dundi.c
===================================================================
RCS file: /usr/cvsroot/asterisk/pbx/pbx_dundi.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -d -r1.18 -r1.19
--- pbx_dundi.c	6 Nov 2004 21:33:01 -0000	1.18
+++ pbx_dundi.c	11 Nov 2004 14:40:14 -0000	1.19
@@ -399,9 +399,11 @@
 			if (!ioctl(s, SIOCGIFHWADDR, &ifr)) {
 				memcpy(&global_eid, ((unsigned char *)&ifr.ifr_hwaddr) + 2, sizeof(global_eid));
 				ast_log(LOG_DEBUG, "Seeding global EID '%s' from '%s'\n", dundi_eid_to_str(eid_str, sizeof(eid_str), &global_eid), ifr.ifr_name);
+				close(s);
 				return;
 			}
         }
+		close(s);
 	}
 #else
 #if defined(ifa_broadaddr)




More information about the svn-commits mailing list