]> git.ipfire.org Git - thirdparty/sarg.git/commitdiff
Initialize LDAP connection after generating the useragent log
authorFrederic Marchal <fmarchal@users.sourceforge.net>
Sun, 4 Oct 2015 15:08:49 +0000 (17:08 +0200)
committerFrederic Marchal <fmarchal@users.sourceforge.net>
Sun, 4 Oct 2015 15:08:49 +0000 (17:08 +0200)
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

index a1ea40d43aba4b8f0dae5e7f3a768ca2726930ce..ae463d3911f0addb40592cf4651dbf4033abc474 100644 (file)
--- 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){