diff options
author | Kozlov Dmitry <dima@server> | 2010-08-23 18:27:31 +0400 |
---|---|---|
committer | Kozlov Dmitry <dima@server> | 2010-08-23 18:33:09 +0400 |
commit | 9e52c15995a90fff71087cda4bb0c600b1d1d28d (patch) | |
tree | ac49c8cc0eeba2d2a0833b68d5809fd568ef7560 /accel-pptpd/log.c | |
parent | 18d93f51ef96af6a6779c3880ff5d06f49467cc4 (diff) | |
download | accel-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.c | 4 |
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); |