Changeset 552:d2be88628747 in freeDiameter
- Timestamp:
- Sep 15, 2010, 2:45:55 PM (14 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/app_radgw/radius.c
r550 r552 591 591 int n, new_n = 0, p = 0; 592 592 593 CHECK_MALLOC( temp_ps = calloc(temp_msg->ps_nb, sizeof(size_t *)) );593 CHECK_MALLOC( temp_ps = calloc(temp_msg->ps_nb, sizeof(size_t)) ); 594 594 595 595 /* Move all the Proxy-State attributes into the temp_ps array */ … … 607 607 608 608 /* And back into the array */ 609 memcpy(temp_msg->radius.attr_pos + new_n, temp_ps, p * sizeof(size_t *));609 memcpy(temp_msg->radius.attr_pos + new_n, temp_ps, p * sizeof(size_t)); 610 610 free(temp_ps); 611 611 }
Note: See TracChangeset
for help on using the changeset viewer.