Remove impossible (hk_peer == NULL) check from ng_address_hook().

Valid hook can't have NULL peer. Even invalid one can't, as it is resets to
deadhook, but not NULL.
This commit is contained in:
mav 2008-03-16 23:12:17 +00:00
parent d44989c323
commit b09a1d85ff

View File

@ -3577,7 +3577,6 @@ ng_address_hook(node_p here, item_p item, hook_p hook, ng_ID_t retaddr)
*/
if ((hook == NULL)
|| NG_HOOK_NOT_VALID(hook)
|| (NG_HOOK_PEER(hook) == NULL)
|| NG_HOOK_NOT_VALID(NG_HOOK_PEER(hook))
|| NG_NODE_NOT_VALID(NG_PEER_NODE(hook))) {
NG_FREE_ITEM(item);