summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ospfd/control.c
diff options
context:
space:
mode:
authorclaudio <claudio@openbsd.org>2006-03-21 17:49:00 +0000
committerclaudio <claudio@openbsd.org>2006-03-21 17:49:00 +0000
commit5f5d6e64788ec35ed699f2548ec61cf2a33bec4d (patch)
tree375e52824fa4bde275ee3b9f8ed0a4baef64a5e3 /usr.sbin/ospfd/control.c
parentCorrectly check for the end of the cmds table. There is no need to check for (diff)
downloadwireguard-openbsd-5f5d6e64788ec35ed699f2548ec61cf2a33bec4d.tar.xz
wireguard-openbsd-5f5d6e64788ec35ed699f2548ec61cf2a33bec4d.zip
Kill debug message that floods the log if ospfctl is killed while dumping
large tables.
Diffstat (limited to 'usr.sbin/ospfd/control.c')
-rw-r--r--usr.sbin/ospfd/control.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/usr.sbin/ospfd/control.c b/usr.sbin/ospfd/control.c
index b832f4657d4..44a65506a71 100644
--- a/usr.sbin/ospfd/control.c
+++ b/usr.sbin/ospfd/control.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: control.c,v 1.13 2006/02/10 18:30:47 claudio Exp $ */
+/* $OpenBSD: control.c,v 1.14 2006/03/21 17:49:00 claudio Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -276,10 +276,8 @@ control_imsg_relay(struct imsg *imsg)
{
struct ctl_conn *c;
- if ((c = control_connbypid(imsg->hdr.pid)) == NULL) {
- log_debug("control_imsg_relay: no connection pid");
+ if ((c = control_connbypid(imsg->hdr.pid)) == NULL)
return (0);
- }
return (imsg_compose(&c->ibuf, imsg->hdr.type, 0, imsg->hdr.pid,
imsg->data, imsg->hdr.len - IMSG_HEADER_SIZE));