diff options
author | Joshua Colp <jcolp@digium.com> | 2016-01-06 12:02:44 -0600 |
---|---|---|
committer | Gerrit Code Review <gerrit2@gerrit.digium.api> | 2016-01-06 12:02:44 -0600 |
commit | eb3d083551b45e08b2aa8bf3bf876ae69ad16b4d (patch) | |
tree | 61e16d5174ed90b6fd8cab8bdf3393bf6eaf3298 | |
parent | b1ee692568a63d6c4f6ef84fd54c556e5af951ff (diff) | |
parent | 86eae38d7ecf64dc3c737a8050c3a7699f2be626 (diff) |
Merge "cel/cel_radius: Fix wrong pointer." into 13
-rw-r--r-- | cel/cel_radius.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cel/cel_radius.c b/cel/cel_radius.c index 79caf22f5..7b418879e 100644 --- a/cel/cel_radius.c +++ b/cel/cel_radius.c @@ -95,7 +95,7 @@ static rc_handle *rh = NULL; #define RADIUS_BACKEND_NAME "CEL Radius Logging" -#define ADD_VENDOR_CODE(x,y) (rc_avpair_add(rh, send, x, &y, strlen(y), VENDOR_CODE)) +#define ADD_VENDOR_CODE(x,y) (rc_avpair_add(rh, send, x, (void *)y, strlen(y), VENDOR_CODE)) static int build_radius_record(VALUE_PAIR **send, struct ast_cel_event_record *record) { @@ -176,7 +176,7 @@ static int build_radius_record(VALUE_PAIR **send, struct ast_cel_event_record *r /* Setting Acct-Session-Id & User-Name attributes for proper generation of Acct-Unique-Session-Id on server side */ /* Channel */ - if (!rc_avpair_add(rh, send, PW_USER_NAME, &record->channel_name, + if (!rc_avpair_add(rh, send, PW_USER_NAME, (void *)record->channel_name, strlen(record->channel_name), 0)) { return -1; } |