diff options
author | Markus Friedl <markus@cvs.openbsd.org> | 2007-08-10 12:32:13 +0000 |
---|---|---|
committer | Markus Friedl <markus@cvs.openbsd.org> | 2007-08-10 12:32:13 +0000 |
commit | 1b0b973148d1353611666040af99327b192eac3f (patch) | |
tree | 67a00ba29489f425a95c8992f9360a3b9ecfb669 /sbin/ipsecctl | |
parent | a85a94cd1e68da6ef66d261da53ff0ce7b9f4a8d (diff) |
duplicate strdup; ok hshoexer
Diffstat (limited to 'sbin/ipsecctl')
-rw-r--r-- | sbin/ipsecctl/parse.y | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sbin/ipsecctl/parse.y b/sbin/ipsecctl/parse.y index 1100d8dfb7f..a0933976947 100644 --- a/sbin/ipsecctl/parse.y +++ b/sbin/ipsecctl/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.124 2007/07/03 11:32:27 markus Exp $ */ +/* $OpenBSD: parse.y,v 1.125 2007/08/10 12:32:12 markus Exp $ */ /* * Copyright (c) 2002, 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -1537,8 +1537,6 @@ ifa_load(void) ifa->ifa_netmask)->sin6_addr, sizeof(struct in6_addr)); } - if ((n->name = strdup(ifa->ifa_name)) == NULL) - err(1, "ifa_load: strdup"); n->next = NULL; n->tail = n; if (h == NULL) |