]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
bk: 39866437zWoK4XcAGglqWOai5tmTPA
authorHarlan Stenn <stenn@ntp.org>
Tue, 1 Aug 2000 05:46:31 +0000 (05:46 -0000)
committerHarlan Stenn <stenn@ntp.org>
Tue, 1 Aug 2000 05:46:31 +0000 (05:46 -0000)
util/ntp-genkeys.c

index 51b7fcecacc867997e0e590bf46fda5918202344..e7a95044bb405062a17666c458615b7afefb97cb 100644 (file)
@@ -442,6 +442,9 @@ snifflink(
        char buf[PATH_MAX];
        int rc;
 
+       if (!file)
+               return;
+
        rc = readlink(file, buf, sizeof buf);
        if (-1 == rc) {
                if (EINVAL == errno)