[Vtun-devel] Minor fix to linkfd.c
Status: Inactive
Brought to you by:
mtbishop
From: Edan A. <eda...@ya...> - 2002-08-06 08:40:35
|
Hi, I have a very tiny fix for Vtun 2.5 linkfd.c : When the stats file cannot be found, the host->stat.file is 0. Then, when the tunnel is being closed, fclose(host->stat.file) (linkfd.c, line 381) generates a segmentation fault (SIGSEGV), and the down script (in vtund.conf) is *not* invoked, which is bad. So, I just added a check before the fclose call, and everything works just fine now: if (host->stat.file) fclose (host->stat.file); Thanks, Edan. --------------------------------- Do You Yahoo!? Yahoo! Health - Feel better, live better |