(GetCount(nttlist) == 0))
break;
Pos = GetNewHashPos(nttlist, 1);
- GetHashPosFromKey (nttlist, nodename, len, Pos);
-
- DeleteEntryFromHash(nttlist, Pos);
+ if (GetHashPosFromKey (nttlist, nodename, len, Pos))
+ DeleteEntryFromHash(nttlist, Pos);
DeleteHashPos(&Pos);
syslog(LOG_DEBUG, "nttlist: removed <%s>\n", nodename);