avoid asserting in VSA_Sane()

so far, it is only used in assertions - this change enables use in
panic code.
parent 8816c6f9
......@@ -357,8 +357,7 @@ VSA_Get_Proto(const struct suckaddr *sua)
int
VSA_Sane(const struct suckaddr *sua)
{
CHECK_OBJ_NOTNULL(sua, SUCKADDR_MAGIC);
return (sua_len(&sua->sa) != 0);
return (VALID_OBJ(sua, SUCKADDR_MAGIC) && sua_len(&sua->sa) != 0);
}
int
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment