Browse code

get_avp_val() caused crash with int AVP name and string type

Miklos Tirpak authored on 31/08/2006 13:18:34
Showing 1 changed files
... ...
@@ -330,7 +330,7 @@ inline void get_avp_val(avp_t *avp, avp_value_t *val)
330 330
 			break;
331 331
 		case AVP_VAL_STR:
332 332
 			/* avp type ID, str value */
333
-			val->s = *(str*)(avp->data);
333
+			val->s = *(str*)(&avp->data);
334 334
 			break;
335 335
 		case AVP_NAME_STR|AVP_VAL_STR:
336 336
 			/* avp type str, str value */