diff options
author | Todd T. Fries <todd@cvs.openbsd.org> | 2006-06-01 06:20:31 +0000 |
---|---|---|
committer | Todd T. Fries <todd@cvs.openbsd.org> | 2006-06-01 06:20:31 +0000 |
commit | 13327c4951bdfc518f5556d1bb63d61d00dcfc2e (patch) | |
tree | 0d8c1861b85940e1b5563daa2725e011365a0063 /sbin/ipsecctl | |
parent | d179f14751db4b127556a8ce3c270acaf8b3c96d (diff) |
correct error messages to match calloc where appropriate
ok hshoexer@
Diffstat (limited to 'sbin/ipsecctl')
-rw-r--r-- | sbin/ipsecctl/ipsecctl.c | 4 | ||||
-rw-r--r-- | sbin/ipsecctl/pfkey.c | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/sbin/ipsecctl/ipsecctl.c b/sbin/ipsecctl/ipsecctl.c index 8563cc0d511..0f0e34281ef 100644 --- a/sbin/ipsecctl/ipsecctl.c +++ b/sbin/ipsecctl/ipsecctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ipsecctl.c,v 1.49 2006/06/01 04:12:34 hshoexer Exp $ */ +/* $OpenBSD: ipsecctl.c,v 1.50 2006/06/01 06:20:30 todd Exp $ */ /* * Copyright (c) 2004, 2005 Hans-Joerg Hoexer <hshoexer@openbsd.org> * @@ -399,7 +399,7 @@ ipsecctl_get_rules(struct ipsecctl *ipsec) rule = calloc(1, sizeof(struct ipsec_rule)); if (rule == NULL) - err(1, "ipsecctl_get_rules: malloc"); + err(1, "ipsecctl_get_rules: calloc"); rule->nr = ipsec->rule_nr++; rule->type |= RULE_FLOW; 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) { |