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:
parent
9acd10fefa
commit
76464f202b
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue