this patch works better...

diff --git a/amd/srvr_nfs.c b/amd/srvr_nfs.c
index 99624311..7c1c2ea0 100644
--- a/amd/srvr_nfs.c
+++ b/amd/srvr_nfs.c
@@ -958,7 +958,7 @@ no_dns:
   ITER(fs, fserver, &nfs_srvr_list) {
     if (STREQ(host, fs->fs_host) &&
        nfs_version == fs->fs_version &&
-       STREQ(nfs_proto, fs->fs_proto)) {
+       (!nfs_proto || !fs->fs_proto || STREQ(nfs_proto, fs->fs_proto))) {
       /*
        * fill in the IP address -- this is only needed
        * if there is a chance an IP address will change

this nfs_proto, unset,  is being copied back into the "fs->fs_proto" structure 
and loops again.

-- 

Reply via email to