[asterisk-commits] russell: branch 1.8 r317480 - /branches/1.8/cdr/cdr_syslog.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu May 5 18:01:01 CDT 2011
Author: russell
Date: Thu May 5 18:00:55 2011
New Revision: 317480
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=317480
Log:
Don't lose cdr_syslog config on a reload.
(closes issue #18679)
Reported by: enegaard
Patches:
issue18679_seanbright.patch uploaded by seanbright (license 71)
Tested by: enegaard
Modified:
branches/1.8/cdr/cdr_syslog.c
Modified: branches/1.8/cdr/cdr_syslog.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/cdr/cdr_syslog.c?view=diff&rev=317480&r1=317479&r2=317480
==============================================================================
--- branches/1.8/cdr/cdr_syslog.c (original)
+++ branches/1.8/cdr/cdr_syslog.c Thu May 5 18:00:55 2011
@@ -264,8 +264,10 @@
return AST_MODULE_LOAD_DECLINE;
}
- free_config();
- res = load_config(1);
+ if ((res = load_config(1))) {
+ free_config();
+ }
+
AST_RWLIST_UNLOCK(&sinks);
return res ? AST_MODULE_LOAD_DECLINE : AST_MODULE_LOAD_SUCCESS;
More information about the asterisk-commits
mailing list