summaryrefslogtreecommitdiff
path: root/accel-pptpd/log.c
diff options
context:
space:
mode:
authorKozlov Dmitry <dima@server>2010-08-23 18:27:31 +0400
committerKozlov Dmitry <dima@server>2010-08-23 18:33:09 +0400
commit9e52c15995a90fff71087cda4bb0c600b1d1d28d (patch)
treeac49c8cc0eeba2d2a0833b68d5809fd568ef7560 /accel-pptpd/log.c
parent18d93f51ef96af6a6779c3880ff5d06f49467cc4 (diff)
downloadaccel-ppp-xebd-9e52c15995a90fff71087cda4bb0c600b1d1d28d.tar.gz
accel-ppp-xebd-9e52c15995a90fff71087cda4bb0c600b1d1d28d.zip
implemented chap authentication
fixed auth type selection when configure-nak received
Diffstat (limited to 'accel-pptpd/log.c')
-rw-r--r--accel-pptpd/log.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/accel-pptpd/log.c b/accel-pptpd/log.c
index 4ee86e1..992f24d 100644
--- a/accel-pptpd/log.c
+++ b/accel-pptpd/log.c
@@ -33,7 +33,7 @@
#define LOG_INFO 2
#define LOG_DEBUG 3
-static FILE *log_file=NULL;
+static FILE *log_file;
static int log_level=10;
static int log_color=1;
static const char* level_name[]={"error","warning","info","debug"};
@@ -47,6 +47,8 @@ static void do_log(int level,const char *fmt,va_list ap)
struct timeval tv;
//pthread_mutex_lock(&lock);
+ if (!log_file)
+ log_file=stdout;
if (msg_completed)
{
gettimeofday(&tv,NULL);