The Samba-Bugzilla – Bug 2367
wins-hook fails to call 'delete'
Last modified: 2009-04-04 08:02:41 UTC
in an attempt to create some sort of ddns with wins using the 'wins hook' i
noticed that 'delete' is not always called when the wins-list is changed. i
think that a wins_hook("delete", namerec, 0) should be called everytime a
remove_name_from_namelist is done. it is done for the 'add' but not for
an example where the call is missing is in the 'wins_register_query_fail'
function. and in nmbd_serverlistdb.c when nmbd is removing 'expired' entries
in the list:
DEBUG(3,("expire_names_on_subnet: Subnet %s - removing
expired name %s\n",
remove_name_from_namelist( subrec, namerec );
wins_hook("delete, namerec, 0) should me called then as well...
(In reply to comment #0)
it looks like it can be easily fixed by adding a 'wins_hook("delete", namerec,
0);' in function 'void remove_name_from_namelist' in file