Changeset 1238:8f9684264fe0 in freeDiameter for libfdcore/p_dp.c
- Timestamp:
- Oct 10, 2013, 11:08:46 PM (11 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libfdcore/p_dp.c
r1186 r1238 113 113 CHECK_FCT( fd_peer_get_load_pending(&peer->p_hdr, &to_receive, &to_send) ); 114 114 115 if ((to_receive == 0) && (to_send == 1 /* only the DPA */)) {115 if ((to_receive == 0) && (to_send == 0)) { 116 116 /* No pending exchange, move to CLOSING directly */ 117 117 CHECK_FCT( fd_psm_change_state(peer, STATE_CLOSING) ); 118 118 119 119 /* Now send the DPA */ 120 CHECK_FCT( fd_out_send( msg, NULL, peer ) );120 CHECK_FCT( fd_out_send( msg, NULL, peer, 0) ); 121 121 122 122 /* and move to CLOSED */ … … 132 132 133 133 /* Now send the DPA */ 134 CHECK_FCT( fd_out_send( msg, NULL, peer ) );134 CHECK_FCT( fd_out_send( msg, NULL, peer, 0) ); 135 135 } 136 136 } else { … … 202 202 203 203 /* Now send the DPR message */ 204 CHECK_FCT_DO( fd_out_send(&msg, NULL, peer ), /* ignore since we are on timeout anyway */ );204 CHECK_FCT_DO( fd_out_send(&msg, NULL, peer, 0), /* ignore since we are on timeout anyway */ ); 205 205 206 206 return 0;
Note: See TracChangeset
for help on using the changeset viewer.