From f0fecbf9fb2b3283b633fa40f333e62fdf1e2879 Mon Sep 17 00:00:00 2001 From: Henning Brauer Date: Sun, 5 Jan 2003 22:20:35 +0000 Subject: err after calloc failure, not errx --- sbin/pfctl/parse.y | 4 ++-- 1 file 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); -- cgit v1.2.3