Changeset 564:603f70bf1453 in freeDiameter for extensions/app_radgw/rgwx_acct.c
- Timestamp:
- Sep 17, 2010, 5:23:46 PM (14 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/app_radgw/rgwx_acct.c
r541 r564 1225 1225 static int acct_diam_ans( struct rgwp_config * cs, struct session * session, struct msg ** diam_ans, struct radius_msg ** rad_fw, struct rgw_client * cli, int * stateful ) 1226 1226 { 1227 struct sess_state * st = NULL ;1227 struct sess_state * st = NULL, stloc; 1228 1228 struct avp *avp, *next; 1229 1229 struct avp_hdr *ahdr, *sid, *oh, *or; … … 1240 1240 return EINVAL; 1241 1241 } 1242 1243 /* Free the state */ 1244 memcpy(&stloc, st, sizeof(struct sess_state)); 1245 free(st); 1246 st = &stloc; 1242 1247 1243 1248 /* Search these AVPs first */ … … 1283 1288 /* Dump its content ? */ 1284 1289 } 1290 1291 /* Now, destroy the Diameter message, since we know it is not converted to RADIUS */ 1292 CHECK_FCT( fd_msg_free(*diam_ans) ); 1293 *diam_ans = NULL; 1294 1285 1295 return -1; 1286 1296 } … … 1426 1436 */ 1427 1437 1428 free(st);1429 1430 1438 return 0; 1431 1439 }
Note: See TracChangeset
for help on using the changeset viewer.