Coverity Scan doesn't like this function.
Here's why:
if (older == NULL && newer == NULL)
implies that older or newer might be NULL
In the else clause, we know that they are not both NULL.
But we dereference each without checking, so that seems like a bug.
Perhaps the test should be
if (older == NULL || newer == NULL)
I don't know what the invariants are of the struct list_head
datastructure. Perhaps they should be documented.
_______________________________________________
Swan-dev mailing list
[email protected]
https://lists.libreswan.org/mailman/listinfo/swan-dev