Changeset 184:89d39bcf9ef5 in freeDiameter
- Timestamp:
- Feb 4, 2010, 4:52:10 PM (14 years ago)
- Branch:
- default
- Phase:
- public
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
freeDiameter/p_psm.c
r159 r184 626 626 /* A new connection has not been established with the remote peer */ 627 627 if (event == FDEVP_CNX_FAILED) { 628 struct cnxctx * cnx = ev_data;629 628 630 629 /* Release the resources of the connecting thread */ -
freeDiameter/sctp.c
r177 r184 868 868 869 869 /* Set the remaining sockopts */ 870 CHECK_FCT_DO( ret = fd_setsockopt_postbind(*sock, 1), goto fail );870 CHECK_FCT_DO( ret = fd_setsockopt_postbind(*sock, 1), goto fail_deco ); 871 871 872 872 /* Done! */ … … 874 874 return 0; 875 875 876 fail_deco: 877 shutdown(*sock, SHUT_RDWR); 876 878 fail: 877 879 if (*sock > 0) { 878 shutdown(*sock, SHUT_RDWR);880 close(*sock); 879 881 *sock = -1; 880 882 } -
freeDiameter/tcp.c
r25 r184 133 133 134 134 /* Try connecting to the remote address */ 135 CHECK_SYS ( connect(*sock, sa, salen));135 CHECK_SYS_DO( connect(*sock, sa, salen), { int ret = errno; close(*sock); *sock = -1; return ret; } ); 136 136 137 137 /* Done! */ -
include/freeDiameter/libfreeDiameter.h
r183 r184 524 524 if (sockptr) { 525 525 CHECK_SYS_DO( close(*(int *)sockptr), /* ignore */ ); 526 *(int *)sockptr = 0;526 *(int *)sockptr = -1; 527 527 } 528 528 }
Note: See TracChangeset
for help on using the changeset viewer.