Changeset 1088:1d1a20a0779d in freeDiameter for extensions/app_radgw/rgwx_sip.c
- Timestamp:
- May 5, 2013, 4:25:27 AM (11 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/app_radgw/rgwx_sip.c
r1027 r1088 134 134 135 135 } dict; /* cache of the dictionary objects we use */ 136 struct session_handler * sess_hdl; /* We store RADIUS request authenticator information in the session */137 136 char * confstr; 138 137 //Chained list of nonce … … 258 257 memset(new, 0, sizeof(struct rgwp_config)); 259 258 260 CHECK_FCT( fd_sess_handler_create( &new->sess_hdl, free, NULL ) );261 259 new->confstr = conffile; 262 260 … … 312 310 CHECK_PARAMS_DO( state, return ); 313 311 314 CHECK_FCT_DO( fd_sess_handler_destroy( &state->sess_hdl, NULL ), );315 316 312 nonce_deletelistnonce(state); 317 313 CHECK_POSIX_DO(pthread_mutex_destroy(&state->nonce_mutex), /*continue*/); … … 320 316 return; 321 317 } 322 323 318 324 319 /* Handle an incoming RADIUS request */ … … 717 712 //fd_msg_dump_walk(1,*diam_fw); 718 713 719 /* Store the request identifier in the session */720 {721 unsigned char * req_sip;722 CHECK_MALLOC(req_sip = malloc(16));723 memcpy(req_sip, &rad_req->hdr->authenticator[0], 16);724 725 CHECK_FCT( fd_sess_state_store( cs->sess_hdl, sess, &req_sip ) );726 }727 728 714 729 715 return 0; … … 857 843 } 858 844 859 CHECK_FCT( fd_sess_state_retrieve( cs->sess_hdl, sess, &req_sip ) );860 free(req_sip);861 862 845 return 0; 863 846 }
Note: See TracChangeset
for help on using the changeset viewer.