diff options
author | Daniel Hartmeier <dhartmei@cvs.openbsd.org> | 2002-12-31 01:39:47 +0000 |
---|---|---|
committer | Daniel Hartmeier <dhartmei@cvs.openbsd.org> | 2002-12-31 01:39:47 +0000 |
commit | 4946b1582c7c894a7af7b4fa6d192b56604dc008 (patch) | |
tree | e72e7426836252c8ef3b1a7cf698039a0c866d6d | |
parent | ecce63524c20a2283b7b5d87afe727f3ab5b0aff (diff) |
err() doesn't return. from Andrey Matveev.
-rw-r--r-- | sbin/pfctl/pfctl.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sbin/pfctl/pfctl.c b/sbin/pfctl/pfctl.c index a387e67bdbd..df3cf0898a7 100644 --- a/sbin/pfctl/pfctl.c +++ b/sbin/pfctl/pfctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pfctl.c,v 1.112 2002/12/29 22:02:46 dhartmei Exp $ */ +/* $OpenBSD: pfctl.c,v 1.113 2002/12/31 01:39:46 dhartmei Exp $ */ /* * Copyright (c) 2001 Daniel Hartmeier @@ -432,10 +432,8 @@ pfctl_get_pool(int dev, struct pf_pool *pool, u_int32_t nr, return (-1); } pa = calloc(1, sizeof(struct pf_pooladdr)); - if (pa == NULL) { + if (pa == NULL) err(1, "calloc"); - return (-1); - } bcopy(&pp.addr, pa, sizeof(struct pf_pooladdr)); TAILQ_INSERT_TAIL(&pool->list, pa, entries); } |