diff options
author | Markus Friedl <markus@cvs.openbsd.org> | 2004-01-28 11:03:33 +0000 |
---|---|---|
committer | Markus Friedl <markus@cvs.openbsd.org> | 2004-01-28 11:03:33 +0000 |
commit | d8b974b7e70bf07a68f33638062287e6c9974755 (patch) | |
tree | 59ee8467e9f9f03ba990c8e2f5ce9690605e06ea /usr.sbin/bgpd/config.c | |
parent | 0d3c535c6652c8b04decabc656a933de5ff35c58 (diff) |
pfkey_setkey: sockaddr -> bgpd_addr; ok claudio
Diffstat (limited to 'usr.sbin/bgpd/config.c')
-rw-r--r-- | usr.sbin/bgpd/config.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/bgpd/config.c b/usr.sbin/bgpd/config.c index 8201b56b776..dd450679179 100644 --- a/usr.sbin/bgpd/config.c +++ b/usr.sbin/bgpd/config.c @@ -1,4 +1,4 @@ -/* $OpenBSD: config.c,v 1.22 2004/01/27 16:49:53 henning Exp $ */ +/* $OpenBSD: config.c,v 1.23 2004/01/28 11:03:32 markus Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -56,10 +56,10 @@ merge_config(struct bgpd_config *xconf, struct bgpd_config *conf, if (!p->conf.id) p->conf.id = get_id(p); if (p->conf.tcp_sign_key[0] && - pfkey_setkey((struct sockaddr *)&p->conf.local_addr, - (struct sockaddr *)&p->conf.remote_addr, - p->conf.tcp_sign_key) == -1) - return (1); + pfkey_setkey(&p->conf.local_addr, + &p->conf.remote_addr, + p->conf.tcp_sign_key) == -1) + return (1); } memcpy(xconf, conf, sizeof(struct bgpd_config)); |