In pfr_insert_kentry() return ENOMEM if memory allocation failed.
This commit is contained in:
parent
7348c5240d
commit
e706fd3a3a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=240810
@ -834,7 +834,7 @@ pfr_insert_kentry(struct pfr_ktable *kt, struct pfr_addr *ad, long tzero)
|
||||
return (0);
|
||||
p = pfr_create_kentry(ad);
|
||||
if (p == NULL)
|
||||
return (EINVAL);
|
||||
return (ENOMEM);
|
||||
|
||||
rv = pfr_route_kentry(kt, p);
|
||||
if (rv)
|
||||
|
Loading…
Reference in New Issue
Block a user