summaryrefslogtreecommitdiffhomepage
path: root/svr-session.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2015-12-15 21:55:51 +0800
committerMatt Johnston <matt@ucc.asn.au>2015-12-15 21:55:51 +0800
commit3d33e65a3546193e05eb469d7c5a9b2b0931420d (patch)
tree8bca45fed4c974af5237f824850798a3d0d4fc1e /svr-session.c
parent2f62128297bc22c22f0da6617eeae53a1cd90dd2 (diff)
parent5ab562f69531a2d5438d22c0918003894e6cec0d (diff)
Merge pull request #18 from annulen/dbclient_syslog
Support syslog logging in dbclient.
Diffstat (limited to 'svr-session.c')
-rw-r--r--svr-session.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/svr-session.c b/svr-session.c
index ea9ca7e..c378562 100644
--- a/svr-session.c
+++ b/svr-session.c
@@ -204,7 +204,7 @@ void svr_dropbear_log(int priority, const char* format, va_list param) {
vsnprintf(printbuf, sizeof(printbuf), format, param);
#ifndef DISABLE_SYSLOG
- if (svr_opts.usingsyslog) {
+ if (opts.usingsyslog) {
syslog(priority, "%s", printbuf);
}
#endif
@@ -215,7 +215,7 @@ void svr_dropbear_log(int priority, const char* format, va_list param) {
havetrace = debug_trace;
#endif
- if (!svr_opts.usingsyslog || havetrace)
+ if (!opts.usingsyslog || havetrace)
{
struct tm * local_tm = NULL;
timesec = time(NULL);