diff options
author | Kozlov Dmitry <dima@server> | 2010-08-23 18:27:31 +0400 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2010-08-23 20:44:25 +0400 |
commit | 38a497e4219c19b81e4a7eb6a89814d86357e2fd (patch) | |
tree | ac49c8cc0eeba2d2a0833b68d5809fd568ef7560 /accel-pptpd/log.c | |
parent | 33e8d91d44655aadf76abc3551ca7bea3e7ea8aa (diff) | |
download | accel-ppp-xebd-38a497e4219c19b81e4a7eb6a89814d86357e2fd.tar.gz accel-ppp-xebd-38a497e4219c19b81e4a7eb6a89814d86357e2fd.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); |