X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=lib%2Flibnfs-sync.c;h=4dd224c5cdaaf68f301105271a40f12cc1e163dc;hb=0b470f1e5efda7e18e9f6f8df785c1caecba44ad;hp=6e4eff542782515ff4b4ec51ad95f1848b9a5274;hpb=2e4db0d14597fdb0013fb16f24b3f872d1217397;p=deb_libnfs.git diff --git a/lib/libnfs-sync.c b/lib/libnfs-sync.c index 6e4eff5..4dd224c 100644 --- a/lib/libnfs-sync.c +++ b/lib/libnfs-sync.c @@ -30,6 +30,7 @@ #include #include #include +#include #include #include #include "libnfs.h" @@ -1258,14 +1259,10 @@ struct nfs_server_list *nfs_find_local_servers(void) continue; } if (ioctl(rpc_get_fd(rpc), SIOCGIFBRDADDR, &ifc.ifc_req[i]) < 0) { - rpc_destroy_context(rpc); - free(ifc.ifc_buf); - return NULL; + continue; } if (getnameinfo(&ifc.ifc_req[i].ifr_broadaddr, sizeof(struct sockaddr_in), &bcdd[0], sizeof(bcdd), NULL, 0, NI_NUMERICHOST) < 0) { - rpc_destroy_context(rpc); - free(ifc.ifc_buf); - return NULL; + continue; } if (rpc_set_udp_destination(rpc, bcdd, 111, 1) < 0) { rpc_destroy_context(rpc);