diff --git a/lib/route/pktloc.c b/lib/route/pktloc.c index 27d63be..75d049e 100644 --- a/lib/route/pktloc.c +++ b/lib/route/pktloc.c @@ -101,8 +101,10 @@ static int read_pktlocs(void) /* if stat fails, just try to read the file */ if (stat(path, &st) == 0) { /* Don't re-read file if file is unchanged */ - if (last_read == st.st_mtime) - return 0; + if (last_read == st.st_mtime) { + err = 0; + goto errout; + } } NL_DBG(2, "Reading packet location file \"%s\"\n", path);