summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd/session.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/bgpd/session.c')
-rw-r--r--usr.sbin/bgpd/session.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/bgpd/session.c b/usr.sbin/bgpd/session.c
index bab8a4c558d..9164b24ec14 100644
--- a/usr.sbin/bgpd/session.c
+++ b/usr.sbin/bgpd/session.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: session.c,v 1.158 2004/04/27 22:42:13 henning Exp $ */
+/* $OpenBSD: session.c,v 1.159 2004/04/28 00:38:39 henning Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -795,7 +795,7 @@ session_accept(int listenfd)
return;
}
}
- if (p->conf.auth.method == MD5SIG) {
+ if (p->conf.auth.method == AUTH_MD5SIG) {
len = sizeof(opt);
if (getsockopt(connfd, IPPROTO_TCP, TCP_MD5SIG,
&opt, &len) == -1)
@@ -844,7 +844,7 @@ session_connect(struct peer *peer)
return (-1);
}
- if (peer->conf.auth.method == MD5SIG)
+ if (peer->conf.auth.method == AUTH_MD5SIG)
if (setsockopt(peer->sock, IPPROTO_TCP, TCP_MD5SIG,
&opt, sizeof(opt)) == -1) {
log_peer_warn(&peer->conf, "setsockopt md5sig");