diff options
author | mbuhl <mbuhl@cvs.openbsd.org> | 2022-06-26 11:37:09 +0000 |
---|---|---|
committer | mbuhl <mbuhl@cvs.openbsd.org> | 2022-06-26 11:37:09 +0000 |
commit | 7bf02fd85a84bca523451f891ba641bce6f3b817 (patch) | |
tree | a1bb280ba6fbc04d204d492bd74d05e2164b8e97 /sys/net/pf.c | |
parent | 80ecf3ca7477e3097f1e0a1f9ab1ce8513e81fb1 (diff) |
Allow waiting during ktable allocation in pf_ioctl.
OK bluhm
Reported-by: syzbot+50ea4f33ed5dd9264918@syzkaller.appspotmail.com
Reported-by: syzbot+df65f8b7ee8c0089e885@syzkaller.appspotmail.com
Diffstat (limited to 'sys/net/pf.c')
-rw-r--r-- | sys/net/pf.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/net/pf.c b/sys/net/pf.c index cff5528294b..aab01c212de 100644 --- a/sys/net/pf.c +++ b/sys/net/pf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pf.c,v 1.1133 2022/06/13 12:48:00 henning Exp $ */ +/* $OpenBSD: pf.c,v 1.1134 2022/06/26 11:37:08 mbuhl Exp $ */ /* * Copyright (c) 2001 Daniel Hartmeier @@ -1585,11 +1585,11 @@ pf_purge_expired_states(u_int32_t maxcheck) } int -pf_tbladdr_setup(struct pf_ruleset *rs, struct pf_addr_wrap *aw) +pf_tbladdr_setup(struct pf_ruleset *rs, struct pf_addr_wrap *aw, int wait) { if (aw->type != PF_ADDR_TABLE) return (0); - if ((aw->p.tbl = pfr_attach_table(rs, aw->v.tblname, 1)) == NULL) + if ((aw->p.tbl = pfr_attach_table(rs, aw->v.tblname, wait)) == NULL) return (1); return (0); } |