1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

add check against nullptr dereferences

This commit is contained in:
Steffen Vogel 2019-01-21 18:54:48 +01:00
parent 9acd10fefa
commit 76464f202b

View file

@ -161,6 +161,8 @@ struct interface * if_get_egress(struct sockaddr *sa, struct vlist *interfaces)
/* If not found, create a new interface */
i = alloc(sizeof(struct interface));
if (!i)
return NULL;
ret = if_init(i, link);
if (ret)