summaryrefslogtreecommitdiff
path: root/radsecproxy.c
diff options
context:
space:
mode:
authorvenaas <venaas>2008-06-10 11:43:51 +0000
committervenaas <venaas@e88ac4ed-0b26-0410-9574-a7f39faa03bf>2008-06-10 11:43:51 +0000
commitb4e51c7bf066756de47f24112d7a10707d789ce8 (patch)
treeb0fbe67b54b1e27ec4ef352557a089702d4855da /radsecproxy.c
parentad526bb6c269419ccaa07289b578b53d86e88619 (diff)
fixed bug when no logdestination specified, and not with -f
git-svn-id: https://svn.testnett.uninett.no/radsecproxy/branches/release-1.1@290 e88ac4ed-0b26-0410-9574-a7f39faa03bf
Diffstat (limited to 'radsecproxy.c')
-rw-r--r--radsecproxy.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/radsecproxy.c b/radsecproxy.c
index ffabc0d..df0bcfb 100644
--- a/radsecproxy.c
+++ b/radsecproxy.c
@@ -3231,15 +3231,9 @@ int main(int argc, char **argv) {
options.loglevel = loglevel;
else if (options.loglevel)
debug_set_level(options.loglevel);
- if (foreground) {
- free(options.logdestination);
- options.logdestination = NULL;
- } else {
- if (!options.logdestination)
- options.logdestination = "x-syslog:///";
- debug_set_destination(options.logdestination);
- free(options.logdestination);
- }
+ if (!foreground)
+ debug_set_destination(options.logdestination ? options.logdestination : "x-syslog:///");
+ free(options.logdestination);
if (!list_first(clconfs))
debugx(1, DBG_ERR, "No clients configured, nothing to do, exiting");