2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-31 14:25:15 +00:00

close sock when we are done with it

This commit is contained in:
Todd C. Miller
1998-12-07 21:16:00 +00:00
parent a31b342609
commit d61383848f

View File

@@ -139,6 +139,7 @@ void load_interfaces()
if (ioctl(sock, SIOCGIFCONF, (caddr_t) ifconf) < 0) {
#endif /* _ISC */
(void) free(ifconf_buf);
(void) close(sock);
return;
}
@@ -253,6 +254,7 @@ void load_interfaces()
}
}
(void) free(ifconf_buf);
(void) close(sock);
}
#else /* !SIOCGIFCONF || STUB_LOAD_INTERFACES */