Changeset 1259:82280e745a89 in freeDiameter for extensions/rt_redirect/rt_redir.c
- Timestamp:
- Mar 24, 2014, 9:13:38 PM (10 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/rt_redirect/rt_redir.c
r740 r1259 47 47 { 48 48 TRACE_ENTRY(""); 49 49 50 50 /* Dictionary objects */ 51 51 CHECK_FCT( fd_dict_search( fd_g_config->cnf_dict, DICT_AVP, AVP_BY_NAME, "Destination-Realm", &redir_dict_dr, ENOENT) ); … … 54 54 /* Initialize the entries array */ 55 55 CHECK_FCT( redir_entry_init() ); 56 56 57 57 /* Start the expire thread */ 58 58 CHECK_POSIX( pthread_create( &exp_thr, NULL, redir_exp_thr_fct, NULL ) ); 59 59 60 60 /* Register the callback that receives the answers and processes when it contains a Redirect indication. */ 61 61 CHECK_FCT( fd_rt_fwd_register ( redir_fwd_cb, NULL, RT_FWD_ANS, &fwd_hdl ) ); … … 73 73 { 74 74 int i; 75 75 76 76 /* Unregister the callbacks */ 77 77 if (fwd_hdl) { … … 81 81 CHECK_FCT_DO( fd_rt_out_unregister(out_hdl, NULL), ); 82 82 } 83 83 84 84 /* Stop the expiry thread */ 85 85 CHECK_FCT_DO( fd_thr_term(&exp_thr), ); 86 86 87 87 /* Empty all entries */ 88 88 CHECK_POSIX_DO( pthread_mutex_lock(&redir_exp_peer_lock), ); … … 98 98 } 99 99 CHECK_POSIX_DO( pthread_mutex_unlock(&redir_exp_peer_lock), ); 100 100 101 101 return; 102 102 }
Note: See TracChangeset
for help on using the changeset viewer.