From 48d117457a9f343363c32863fbb9ca588957dff6 Mon Sep 17 00:00:00 2001 From: Frederic Marchal Date: Sun, 4 Oct 2015 17:08:49 +0200 Subject: [PATCH] Initialize LDAP connection after generating the useragent log The useragent log doesn't need the connection to the LDAP server. Let's exclude this task from the connection timeout and have more time to resolve the user names. Thanks to Evgeniy Yakushev for spotting that error. --- report.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/report.c b/report.c index a1ea40d..ae463d3 100644 --- a/report.c +++ b/report.c @@ -115,8 +115,8 @@ void gerarel(void) if (email[0] == '\0' && !FileList_IsEmpty(UserAgentLog)) UserAgent_Readlog(); - init_usertab(UserTabFile); UserAgent(); + init_usertab(UserTabFile); snprintf(wdirname,sizeof(wdirname),"%s/sarg-general",outdirname); if((fp_gen=MY_FOPEN(wdirname,"w"))==NULL){ -- 2.47.2