Changeset 1238:8f9684264fe0 in freeDiameter for libfdcore/p_ce.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_ce.c
r1230 r1238 635 635 CHECK_FCT_DO( fd_msg_new_answer_from_req ( fd_g_config->cnf_dict, cer, MSGFL_ANSW_ERROR ), goto destroy ); 636 636 CHECK_FCT_DO( fd_msg_rescode_set(*cer, error->pei_errcode, error->pei_message, error->pei_avp, 1 ), goto destroy ); 637 CHECK_FCT_DO( fd_out_send(cer, *recv_cnx, NULL ), goto destroy );637 CHECK_FCT_DO( fd_out_send(cer, *recv_cnx, NULL, 0), goto destroy ); 638 638 639 639 if (error->pei_avp_free) { … … 659 659 /* Send CER on the new connection */ 660 660 CHECK_FCT( create_CER(peer, initiator, &cer) ); 661 CHECK_FCT( fd_out_send(&cer, initiator, peer ) );661 CHECK_FCT( fd_out_send(&cer, initiator, peer, 0) ); 662 662 663 663 /* Are we doing an election ? */ … … 714 714 715 715 /* msg now contains an answer message to send back */ 716 CHECK_FCT_DO( fd_out_send(msg, NULL, peer ), /* In case of error the message has already been dumped */ );716 CHECK_FCT_DO( fd_out_send(msg, NULL, peer, 0), /* In case of error the message has already been dumped */ ); 717 717 } 718 718 … … 943 943 } 944 944 945 /* Update the counter to match with the answer being sent */946 CHECK_POSIX( pthread_mutex_lock(&peer->p_state_mtx) );947 peer->p_reqin_count++;948 CHECK_POSIX( pthread_mutex_unlock(&peer->p_state_mtx) );949 950 945 /* Reply a CEA */ 951 946 CHECK_FCT( fd_msg_new_answer_from_req ( fd_g_config->cnf_dict, &msg, 0 ) ); … … 956 951 fd_hook_call(HOOK_PEER_CONNECT_SUCCESS, msg, peer, NULL, NULL); 957 952 958 CHECK_FCT( fd_out_send(&msg, peer->p_cnxctx, peer ) );953 CHECK_FCT( fd_out_send(&msg, peer->p_cnxctx, peer, 0 ) ); 959 954 960 955 /* Handshake if needed */
Note: See TracChangeset
for help on using the changeset viewer.