give names more time when refreshing
authorAndrew Tridgell <tridge@samba.org>
Tue, 20 Aug 1996 16:43:11 +0000 (16:43 +0000)
committerAndrew Tridgell <tridge@samba.org>
Tue, 20 Aug 1996 16:43:11 +0000 (16:43 +0000)
(This used to be commit ee7d8f7570ab9154b5f7d39dedf47232062c14d7)

source3/nameserv.c

index d3aed24ab12997c5a859ab9b04219e634e55ce26..8831cb510f15d52f1d35cbbff3a2c7675bbb5328 100644 (file)
@@ -257,6 +257,9 @@ void refresh_my_names(time_t t)
       {
         add_my_name_entry(d,n->name.name,n->name.name_type,
                           n->ip_flgs[0].nb_flags);
+       /* they get a new lease on life :-) */
+       n->death_time += GET_TTL(0);
+       n->refresh_time += GET_TTL(0);
       }
     }
   }