--- src/http-analyze.c_orig 2009-04-04 22:33:02.017208504 +0200 +++ src/http-analyze.c 2009-04-04 22:52:48.729800768 +0200 @@ -4737,10 +4737,10 @@ prTopList(ofp, top_min, topn_min, 2); if (topn_sec > 0) prTopList(ofp, top_sec, topn_sec, 3); - } - html_trailer(ofp); - (void) fclose(ofp); + html_trailer(ofp); + (void) fclose(ofp); + } /* the top files/sites lists */ if (lntab[FNAME_TOPFILES] || lntab[FNAME_TOPLFILES]) {