diff options
author | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 2001-06-05 10:51:28 +0000 |
---|---|---|
committer | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 2001-06-05 10:51:28 +0000 |
commit | a036a81e300ccd01401951105450b45643ec50ee (patch) | |
tree | c04e0de45657cec172949adf5d1ca7d131531b67 | |
parent | 0b2a5083fc28b745514ef996be4669b5cf99848f (diff) |
Correctly initialize remote ID when using prefix.
-rw-r--r-- | sbin/isakmpd/pf_key_v2.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sbin/isakmpd/pf_key_v2.c b/sbin/isakmpd/pf_key_v2.c index 02dc7eeeb83..2670cc2082e 100644 --- a/sbin/isakmpd/pf_key_v2.c +++ b/sbin/isakmpd/pf_key_v2.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pf_key_v2.c,v 1.61 2001/06/05 10:43:56 angelos Exp $ */ +/* $OpenBSD: pf_key_v2.c,v 1.62 2001/06/05 10:51:27 angelos Exp $ */ /* $EOM: pf_key_v2.c,v 1.79 2000/12/12 00:33:19 niklas Exp $ */ /* @@ -2921,13 +2921,13 @@ pf_key_v2_acquire (struct pf_key_v2_msg *pmsg) /* Set the section if it doesn't already exist. */ af = conf_begin (); - if (!conf_get_str (srcid, "ID-type")) + if (!conf_get_str (dstid, "ID-type")) { - if (conf_set (af, srcid, "ID-type", + if (conf_set (af, dstid, "ID-type", afamily == AF_INET ? "IPV4_ADDR" : "IPV6_ADDR", 1, 0) - || conf_set (af, srcid, "Refcount", "1", 1, 0) - || conf_set (af, srcid, "Address", (char *)(dstident + 1), + || conf_set (af, dstid, "Refcount", "1", 1, 0) + || conf_set (af, dstid, "Address", (char *)(dstident + 1), 1, 0)) { conf_end (af, 0); |