summaryrefslogtreecommitdiff
path: root/sbin/ipsecctl/pfkey.c
diff options
context:
space:
mode:
authorTodd T. Fries <todd@cvs.openbsd.org>2006-06-01 06:20:31 +0000
committerTodd T. Fries <todd@cvs.openbsd.org>2006-06-01 06:20:31 +0000
commit13327c4951bdfc518f5556d1bb63d61d00dcfc2e (patch)
tree0d8c1861b85940e1b5563daa2725e011365a0063 /sbin/ipsecctl/pfkey.c
parentd179f14751db4b127556a8ce3c270acaf8b3c96d (diff)
correct error messages to match calloc where appropriate
ok hshoexer@
Diffstat (limited to 'sbin/ipsecctl/pfkey.c')
-rw-r--r--sbin/ipsecctl/pfkey.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/ipsecctl/pfkey.c b/sbin/ipsecctl/pfkey.c
index 7cb06dbafb9..2288515c101 100644
--- a/sbin/ipsecctl/pfkey.c
+++ b/sbin/ipsecctl/pfkey.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pfkey.c,v 1.40 2006/05/31 05:38:45 hshoexer Exp $ */
+/* $OpenBSD: pfkey.c,v 1.41 2006/06/01 06:20:30 todd Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
* Copyright (c) 2003, 2004 Markus Friedl <markus@openbsd.org>
@@ -675,7 +675,7 @@ pfkey_parse(struct sadb_msg *msg, struct ipsec_rule *rule)
rule->local = calloc(1, sizeof(struct ipsec_addr_wrap));
if (rule->local == NULL)
- err(1, "pfkey_parse: malloc");
+ err(1, "pfkey_parse: calloc");
rule->local->af = sa->sa_family;
switch (sa->sa_family) {
@@ -703,7 +703,7 @@ pfkey_parse(struct sadb_msg *msg, struct ipsec_rule *rule)
rule->peer = calloc(1, sizeof(struct ipsec_addr_wrap));
if (rule->peer == NULL)
- err(1, "pfkey_parse: malloc");
+ err(1, "pfkey_parse: calloc");
rule->peer->af = sa->sa_family;
switch (sa->sa_family) {