Changeset 252 for trunk/src/sh_forward.c
- Timestamp:
- Oct 12, 2009, 10:40:45 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/sh_forward.c
r248 r252 1753 1753 } 1754 1754 1755 (void) close (sockfd);1755 (void) sl_close_fd (FIL__, __LINE__, sockfd); 1756 1756 memset(answer, 0, TRANS_BYTES + 256); 1757 1757 MUNLOCK(answer, TRANS_BYTES + 256); … … 1763 1763 } 1764 1764 1765 (void) close (sockfd);1765 (void) sl_close_fd (FIL__, __LINE__, sockfd); 1766 1766 memset(answer, 0, TRANS_BYTES + 256); 1767 1767 MUNLOCK(answer, TRANS_BYTES + 256); … … 1775 1775 1776 1776 1777 (void) close (sockfd);1777 (void) sl_close_fd (FIL__, __LINE__, sockfd); 1778 1778 memset(answer, 0, 512); 1779 1779 MUNLOCK(answer, 512); … … 2203 2203 if (conn->fd != (-1)) 2204 2204 { 2205 close (conn->fd);2205 sl_close_fd (FIL__, __LINE__, conn->fd); 2206 2206 conn->fd = -1; 2207 2207 } … … 4681 4681 newconn->fd = -1; 4682 4682 newconn->state = CONN_FREE; 4683 close(rc);4683 sl_close_fd(FIL__, __LINE__, rc); 4684 4684 SL_RETURN( (-1), _("sh_forward_accept")); 4685 4685 } … … 4698 4698 newconn->fd = -1; 4699 4699 newconn->state = CONN_FREE; 4700 close(rc);4700 sl_close_fd(FIL__, __LINE__, rc); 4701 4701 SL_RETURN( (-1), _("sh_forward_accept")); 4702 4702 } … … 5780 5780 */ 5781 5781 TPT(( 0, FIL__, __LINE__, _("msg=<close syslog socket>\n"))); 5782 close(syslog_sock);5782 sl_close_fd(FIL__, __LINE__, syslog_sock); 5783 5783 syslog_sock = -1; 5784 5784 } … … 5830 5830 errnum = errno; 5831 5831 sh_forward_printerr (_("syslog bind"), errnum, 514, __LINE__); 5832 close(sock);5832 sl_close_fd(FIL__, __LINE__, sock); 5833 5833 SL_RETURN((-1), _("create_syslog_socket")); 5834 5834 }
Note:
See TracChangeset
for help on using the changeset viewer.