set a maximum name refresh time of 20 minutes.
[samba.git] / source3 / nmbd / nmbd_mynames.c
index ba42274165207640cd046708fd25f1407233294e..4a4e102786ed770107ac254ff0e6e5e85f568288 100644 (file)
@@ -197,7 +197,7 @@ void refresh_my_names(time_t t)
         if( !is_refresh_already_queued( subrec, namerec) )
           refresh_name( subrec, namerec, NULL, NULL, NULL );
         namerec->data.death_time += lp_max_ttl();
-        namerec->data.refresh_time += lp_max_ttl();
+        namerec->data.refresh_time += MIN(lp_max_ttl(), MAX_REFRESH_TIME);
       }
     }
   }