[asterisk-commits] russell: branch group/newcdr r199021 - /team/group/newcdr/cel/cel_radius.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Jun 4 08:49:35 CDT 2009
Author: russell
Date: Thu Jun 4 08:49:31 2009
New Revision: 199021
URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=199021
Log:
resolve warning
Modified:
team/group/newcdr/cel/cel_radius.c
Modified: team/group/newcdr/cel/cel_radius.c
URL: http://svn.asterisk.org/svn-view/asterisk/team/group/newcdr/cel/cel_radius.c?view=diff&rev=199021&r1=199020&r2=199021
==============================================================================
--- team/group/newcdr/cel/cel_radius.c (original)
+++ team/group/newcdr/cel/cel_radius.c Thu Jun 4 08:49:31 2009
@@ -103,7 +103,7 @@
int recordtype = PW_STATUS_STOP;
struct ast_tm tm;
char timestr[128];
- const char *tmp;
+ char *amaflags;
if (!rc_avpair_add(rh, send, PW_ACCT_STATUS_TYPE, &recordtype, 0, 0)) {
return -1;
@@ -159,8 +159,8 @@
return -1;
}
/* AMA Flags */
- tmp = ast_cel_flags2str(amaflag);
- if (!rc_avpair_add(rh, send, PW_AST_AMA_FLAGS, tmp, strlen(tmp), VENDOR_CODE)) {
+ amaflags = ast_strdupa(ast_cel_flags2str(amaflag));
+ if (!rc_avpair_add(rh, send, PW_AST_AMA_FLAGS, amaflags, strlen(amaflags), VENDOR_CODE)) {
return -1;
}
if (ast_test_flag(&global_flags, RADIUS_FLAG_LOGUNIQUEID)) {
More information about the asterisk-commits
mailing list