]> git.ipfire.org Git - thirdparty/sarg.git/blobdiff - report.c
Initialize LDAP connection after generating the useragent log
[thirdparty/sarg.git] / 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){