Changeset 1088:1d1a20a0779d in freeDiameter for extensions/app_sip/multimediaauth.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_sip/multimediaauth.c
r639 r1088 36 36 #include "app_sip.h" 37 37 38 struct sess_state 39 { 40 char *nonce; 41 }; 42 38 43 39 44 int app_sip_MAR_cb( struct msg ** msg, struct avp * paramavp, struct session * sess, void * opaque, enum disp_action * act) … … 56 61 57 62 //The nonce we will store and retrieve in session 58 struct ds_nonce *storednonce=NULL;63 struct sess_state *storednonce=NULL; 59 64 60 65 … … 362 367 363 368 //We store the nonce (storednonce structure) inside the session 364 storednonce=malloc(sizeof(struct ds_nonce));365 memset(storednonce,0,sizeof(struct ds_nonce));369 storednonce=malloc(sizeof(struct sess_state)); 370 memset(storednonce,0,sizeof(struct sess_state)); 366 371 CHECK_MALLOC(storednonce->nonce=malloc(NONCE_SIZE*2+1)); 367 372 memcpy(storednonce->nonce,(char *)nonce,NONCE_SIZE*2+1);
Note: See TracChangeset
for help on using the changeset viewer.