For consistency use LLE_IS_VALID() in this 4th place that is actually

interested in the (void *)-1 return value hack.
This way we can easily identify those special parts of the code.
This commit is contained in:
bz 2008-12-28 21:18:01 +00:00
parent 208a4373c4
commit e46dfc4a18

View File

@ -1153,7 +1153,7 @@ in_lltable_lookup(struct lltable *llt, u_int flags, const struct sockaddr *l3add
lle = (void *)-1;
}
if (lle != NULL && lle != (void *)-1) {
if (LLE_IS_VALID(lle)) {
if (flags & LLE_EXCLUSIVE)
LLE_WLOCK(lle);
else