From: Frederic Marchal Date: Sun, 4 Oct 2015 15:08:49 +0000 (+0200) Subject: Initialize LDAP connection after generating the useragent log X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=48d117457a9f343363c32863fbb9ca588957dff6;p=thirdparty%2Fsarg.git 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. --- 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){