remove bgpd warning message exposed by "bgpctl show rib peer out" for
authorderaadt <deraadt@openbsd.org>
Sat, 24 Apr 2021 17:04:24 +0000 (17:04 +0000)
committerderaadt <deraadt@openbsd.org>
Sat, 24 Apr 2021 17:04:24 +0000 (17:04 +0000)
non-existant peer; the bgpctl command exposes the error itself
ok claudio

usr.sbin/bgpd/rde.c

index 2fc05f6..6a15c89 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: rde.c,v 1.517 2021/04/16 06:20:29 claudio Exp $ */
+/*     $OpenBSD: rde.c,v 1.518 2021/04/24 17:04:24 deraadt Exp $ */
 
 /*
  * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -2594,8 +2594,6 @@ rde_dump_ctx_new(struct ctl_show_rib_request *req, pid_t pid,
 
                peer = peer_match(&req->neighbor, 0);
                if (peer == NULL) {
-                       log_warnx("%s: no peer found for adj-rib-out",
-                           __func__);
                        error = CTL_RES_NOSUCHPEER;
                        imsg_compose(ibuf_se_ctl, IMSG_CTL_RESULT, 0, pid, -1,
                            &error, sizeof(error));