artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8397e33
)
Don't leak fd on error.
author
claudio
<claudio@openbsd.org>
Tue, 11 May 2021 12:09:19 +0000
(12:09 +0000)
committer
claudio
<claudio@openbsd.org>
Tue, 11 May 2021 12:09:19 +0000
(12:09 +0000)
usr.sbin/bgpd/rtr.c
patch
|
blob
|
history
diff --git
a/usr.sbin/bgpd/rtr.c
b/usr.sbin/bgpd/rtr.c
index
576e60c
..
7ed317a
100644
(file)
--- a/
usr.sbin/bgpd/rtr.c
+++ b/
usr.sbin/bgpd/rtr.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: rtr.c,v 1.
2 2021/04/26 07:40:26
claudio Exp $ */
+/* $OpenBSD: rtr.c,v 1.
3 2021/05/11 12:09:19
claudio Exp $ */
/*
* Copyright (c) 2020 Claudio Jeker <claudio@openbsd.org>
@@
-214,6
+214,7
@@
rtr_dispatch_imsg_parent(struct imsgbuf *ibuf)
if ((rs = rtr_get(imsg.hdr.peerid)) == NULL) {
log_warnx("IMSG_SOCKET_CONN: unknown rtr id %d",
imsg.hdr.peerid);
+ close(fd);
break;
}
rtr_open(rs, fd);