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:
parent
08a2459ee1
commit
42d866dd69
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user