changeset 552:d2be88628747

Bug fix
author Sebastien Decugis <sdecugis@nict.go.jp>
date Wed, 15 Sep 2010 14:45:55 +0900
parents 27f833e7f9c4
children 153cd2600fcf
files extensions/app_radgw/radius.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/extensions/app_radgw/radius.c	Wed Sep 15 14:41:50 2010 +0900
+++ b/extensions/app_radgw/radius.c	Wed Sep 15 14:45:55 2010 +0900
@@ -590,7 +590,7 @@
 		size_t *temp_ps = NULL;
 		int n, new_n = 0, p = 0;
 		
-		CHECK_MALLOC( temp_ps = calloc(temp_msg->ps_nb, sizeof(size_t *)) );
+		CHECK_MALLOC( temp_ps = calloc(temp_msg->ps_nb, sizeof(size_t)) );
 		
 		/* Move all the Proxy-State attributes into the temp_ps array */
 		for (n=0; n < temp_msg->radius.attr_used; n++) {
@@ -606,7 +606,7 @@
 		temp_msg->ps_first = new_n;
 		
 		/* And back into the array */
-		memcpy(temp_msg->radius.attr_pos + new_n, temp_ps, p * sizeof(size_t *));
+		memcpy(temp_msg->radius.attr_pos + new_n, temp_ps, p * sizeof(size_t));
 		free(temp_ps);
 	}
 	
"Welcome to our mercurial repository"