|
@ -1,8 +1,6 @@ |
|
|
diff --git a/radsecproxy.c b/radsecproxy.c
|
|
|
|
|
|
index 563c4a8..9fa076d 100644
|
|
|
|
|
|
--- a/radsecproxy.c
|
|
|
--- a/radsecproxy.c
|
|
|
+++ b/radsecproxy.c
|
|
|
+++ b/radsecproxy.c
|
|
|
@@ -3382,18 +3382,16 @@ int radsecproxy_main(int argc, char **argv) {
|
|
|
|
|
|
|
|
|
@@ -3385,15 +3385,13 @@ int radsecproxy_main(int argc, char **ar
|
|
|
options.loglevel = loglevel; |
|
|
options.loglevel = loglevel; |
|
|
else if (options.loglevel) |
|
|
else if (options.loglevel) |
|
|
debug_set_level(options.loglevel); |
|
|
debug_set_level(options.loglevel); |
|
@ -10,22 +8,18 @@ index 563c4a8..9fa076d 100644 |
|
|
- debug_set_destination(options.logdestination
|
|
|
- debug_set_destination(options.logdestination
|
|
|
- ? options.logdestination
|
|
|
- ? options.logdestination
|
|
|
- : "x-syslog:///", LOG_TYPE_DEBUG);
|
|
|
- : "x-syslog:///", LOG_TYPE_DEBUG);
|
|
|
+ debug_set_destination(options.logdestination
|
|
|
|
|
|
+ ? options.logdestination
|
|
|
|
|
|
+ : "x-syslog:///", LOG_TYPE_DEBUG);
|
|
|
|
|
|
#if defined(WANT_FTICKS) |
|
|
|
|
|
- if (options.ftickssyslogfacility) {
|
|
|
- if (options.ftickssyslogfacility) {
|
|
|
- debug_set_destination(options.ftickssyslogfacility,
|
|
|
- debug_set_destination(options.ftickssyslogfacility,
|
|
|
- LOG_TYPE_FTICKS);
|
|
|
- LOG_TYPE_FTICKS);
|
|
|
- free(options.ftickssyslogfacility);
|
|
|
- free(options.ftickssyslogfacility);
|
|
|
- }
|
|
|
- }
|
|
|
-#endif
|
|
|
|
|
|
|
|
|
+ debug_set_destination(options.logdestination
|
|
|
|
|
|
+ ? options.logdestination
|
|
|
|
|
|
+ : "x-syslog:///", LOG_TYPE_DEBUG);
|
|
|
+ if (options.ftickssyslogfacility) {
|
|
|
+ if (options.ftickssyslogfacility) {
|
|
|
+ debug_set_destination(options.ftickssyslogfacility,
|
|
|
|
|
|
+ LOG_TYPE_FTICKS);
|
|
|
|
|
|
+ free(options.ftickssyslogfacility);
|
|
|
|
|
|
|
|
|
+ debug_set_destination(options.ftickssyslogfacility,
|
|
|
|
|
|
+ LOG_TYPE_FTICKS);
|
|
|
|
|
|
+ free(options.ftickssyslogfacility);
|
|
|
} |
|
|
} |
|
|
+#endif
|
|
|
|
|
|
free(options.logdestination); |
|
|
free(options.logdestination); |
|
|
|
|
|
|
|
|
if (!list_first(clconfs)) |
|
|
|
|
|
|
|
|
if (options.logtid) |