This avoids heap corruption or segmentation violations that possibly caused Debian bug#696830 --- isdnlog/isdnlog/functions.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/isdnlog/isdnlog/functions.c b/isdnlog/isdnlog/functions.c index 15f9867..d0858bf 100644 --- a/isdnlog/isdnlog/functions.c +++ b/isdnlog/isdnlog/functions.c @@ -334,9 +334,6 @@ void _Exit_isdnlog(char *File, int Line, int RetCode) /* WARNING: RetCode==-9 do procinfo(1, NULL, -1); /* close proc */ closelog(); - if (fout) - fclose(fout); - #ifdef POSTGRES dbClose(); #endif @@ -352,6 +349,9 @@ void _Exit_isdnlog(char *File, int Line, int RetCode) /* WARNING: RetCode==-9 do handle_runfiles(NULL,NULL,STOP_PROG); } /* if */ + if (fout) + fclose(fout); + if (RetCode != -9) exit(RetCode); } /* Exit */ -- 1.7.10.4 -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org