summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd/control.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2004-04-29 19:56:05 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2004-04-29 19:56:05 +0000
commit192c29c129918b8523baca5a5b5f0d4d78497439 (patch)
tree2f6665c7ed86ef609f9d51464674039bde2907ec /usr.sbin/bgpd/control.c
parentc427f27d9c495f2eb86e1695f38f557dafb054b2 (diff)
sock -> fd; ok henning
Diffstat (limited to 'usr.sbin/bgpd/control.c')
-rw-r--r--usr.sbin/bgpd/control.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/bgpd/control.c b/usr.sbin/bgpd/control.c
index e4a5a8c4b8f..373b1e1902d 100644
--- a/usr.sbin/bgpd/control.c
+++ b/usr.sbin/bgpd/control.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: control.c,v 1.28 2004/04/25 03:13:42 henning Exp $ */
+/* $OpenBSD: control.c,v 1.29 2004/04/29 19:56:04 deraadt Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -137,7 +137,7 @@ control_connbyfd(int fd)
{
struct ctl_conn *c;
- for (c = TAILQ_FIRST(&ctl_conns); c != NULL && c->ibuf.sock != fd;
+ for (c = TAILQ_FIRST(&ctl_conns); c != NULL && c->ibuf.fd != fd;
c = TAILQ_NEXT(c, entries))
; /* nothing */
@@ -169,7 +169,7 @@ control_close(int fd)
msgbuf_clear(&c->ibuf.w);
TAILQ_REMOVE(&ctl_conns, c, entries);
- close(c->ibuf.sock);
+ close(c->ibuf.fd);
free(c);
}