mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-15 00:41:02 +00:00
Fix leaky fd issue (bug #2832)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4199 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -399,9 +399,11 @@ static void reset_global_eid(void)
|
||||
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)
|
||||
|
Reference in New Issue
Block a user