X-Git-Url: https://git.ozlabs.org/?p=ppp.git;a=blobdiff_plain;f=pppd%2Fsys-linux.c;h=05158e3d2fcba59d22499df92739161093b2bd27;hp=e963c79786097d2957ac65b6ca2323d58edd44de;hb=bfe93d2ac77c628c15ed7acf07ce6b6ef36f0831;hpb=97a4e67df7a9c196440f4644beba7a6801c7ebe4 diff --git a/pppd/sys-linux.c b/pppd/sys-linux.c index e963c79..05158e3 100644 --- a/pppd/sys-linux.c +++ b/pppd/sys-linux.c @@ -2808,8 +2808,8 @@ sys_check_options(void) if (ipxcp_protent.enabled_flag) { struct stat stat_buf; - if ((path = path_to_procfs("/net/ipx/interface")) == 0 - || (path = path_to_procfs("/net/ipx_interface")) == 0 + if ( ((path = path_to_procfs("/net/ipx/interface")) == NULL + && (path = path_to_procfs("/net/ipx_interface")) == NULL) || lstat(path, &stat_buf) < 0) { error("IPX support is not present in the kernel\n"); ipxcp_protent.enabled_flag = 0;