summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd/mrt.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/bgpd/mrt.c')
-rw-r--r--usr.sbin/bgpd/mrt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/bgpd/mrt.c b/usr.sbin/bgpd/mrt.c
index 0faa4ce8063..a2a029e0276 100644
--- a/usr.sbin/bgpd/mrt.c
+++ b/usr.sbin/bgpd/mrt.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mrt.c,v 1.18 2004/01/06 21:48:07 claudio Exp $ */
+/* $OpenBSD: mrt.c,v 1.19 2004/01/07 12:34:23 claudio Exp $ */
/*
* Copyright (c) 2003, 2004 Claudio Jeker <claudio@openbsd.org>
@@ -342,7 +342,7 @@ mrt_close(struct mrt *mrt)
if (msgbuf_unbounded(&mrt->msgbuf))
return (0);
- if (mrt->msgbuf.sock == -1) {
+ if (mrt->msgbuf.sock != -1) {
close(mrt->msgbuf.sock);
mrt->msgbuf.sock = -1;
}