diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2003-01-05 22:20:35 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2003-01-05 22:20:35 +0000 |
commit | f0fecbf9fb2b3283b633fa40f333e62fdf1e2879 (patch) | |
tree | 0b22ae0badce4fdcd6e63c829418e5042b74070c | |
parent | e90372b0147e36057b0216cf1cb442f1b8c3955f (diff) |
err after calloc failure, not errx
-rw-r--r-- | sbin/pfctl/parse.y | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/pfctl/parse.y b/sbin/pfctl/parse.y index 6524ab90b54..eaac46bc019 100644 --- a/sbin/pfctl/parse.y +++ b/sbin/pfctl/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.277 2003/01/05 22:14:23 dhartmei Exp $ */ +/* $OpenBSD: parse.y,v 1.278 2003/01/05 22:20:34 henning Exp $ */ /* * Copyright (c) 2001 Markus Friedl. All rights reserved. @@ -732,7 +732,7 @@ antispoof : ANTISPOOF logquick antispoof_ifspc af { j = calloc(1, sizeof(struct node_if)); if (j == NULL) - errx(1, "antispoof: calloc"); + err(1, "antispoof: calloc"); strlcpy(j->ifname, i->ifname, IFNAMSIZ); j->not = 1; h = ifa_lookup(j->ifname, PFCTL_IFLOOKUP_NET); |