Assert on malloc to succeed

This ticks off an XXX comment: We basically assert on malloc to succeed
everywhere, so we should stick with it here, too.
parent 39a03ec6
......@@ -248,11 +248,7 @@ VSA_Malloc(const void *s, unsigned sal)
void *d;
d = malloc(vsa_suckaddr_len);
/* XXX: shouldn't we AN(sua) instead of mixing up failed allocations
* with unsupported address family or bogus sockaddr?
*/
if (d == NULL)
return (NULL);
AN(d);
return (VSA_Build(d, s, sal));
}
......
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