diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2010-02-18 09:25:17 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2010-02-18 09:25:17 +0000 |
commit | 6bdbb9b38e58dfa674442bf1874a40231f58d56e (patch) | |
tree | bd497155f84e98219410e35cc65cffb93aa16d66 | |
parent | acdff2d2478cea58ec53a3188e3931155d2b63db (diff) |
Close a fd leak when opening the tcp connection to the neighbor.
OK michele
-rw-r--r-- | usr.sbin/ldpd/neighbor.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/ldpd/neighbor.c b/usr.sbin/ldpd/neighbor.c index f892495ee41..d53de994921 100644 --- a/usr.sbin/ldpd/neighbor.c +++ b/usr.sbin/ldpd/neighbor.c @@ -1,4 +1,4 @@ -/* $OpenBSD: neighbor.c,v 1.4 2009/12/06 16:12:47 michele Exp $ */ +/* $OpenBSD: neighbor.c,v 1.5 2010/02/18 09:25:16 claudio Exp $ */ /* * Copyright (c) 2009 Michele Marchetto <michele@openbsd.org> @@ -639,6 +639,7 @@ nbr_establish_connection(struct nbr *nbr) log_debug("nbr_establish_connection: error while " "connecting to %s", inet_ntoa(nbr->addr)); nbr_act_start_idtimer(nbr); + close(nbr->fd); return (-1); } |