summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorclaudio <claudio@openbsd.org>2020-05-11 16:59:19 +0000
committerclaudio <claudio@openbsd.org>2020-05-11 16:59:19 +0000
commit4bc1d1b706be164b5e6811da4cfc08f10c996940 (patch)
tree061b008e086a8cd6fac5e015a1697d1296ae4d1f
parentShould have bumped this to 1.0 a long time ago. (diff)
downloadwireguard-openbsd-4bc1d1b706be164b5e6811da4cfc08f10c996940.tar.xz
wireguard-openbsd-4bc1d1b706be164b5e6811da4cfc08f10c996940.zip
There is no reason to limit the string length of log_reason() to REASON_LEN
charactars. Also fix a long line. OK benno@ deraadt@
-rw-r--r--usr.sbin/bgpd/bgpd.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/bgpd/bgpd.c b/usr.sbin/bgpd/bgpd.c
index ef2142f4fa0..77f5eb2d84a 100644
--- a/usr.sbin/bgpd/bgpd.c
+++ b/usr.sbin/bgpd/bgpd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bgpd.c,v 1.228 2020/05/10 13:38:46 deraadt Exp $ */
+/* $OpenBSD: bgpd.c,v 1.229 2020/05/11 16:59:19 claudio Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -829,10 +829,10 @@ dispatch_imsg(struct imsgbuf *ibuf, int idx, struct bgpd_config *conf)
else {
reconfig = 1;
reconfpid = imsg.hdr.pid;
- if (imsg.hdr.len == IMSG_HEADER_SIZE + REASON_LEN &&
- ((char *)imsg.data)[0])
- log_info("reload due to: %.*s",
- REASON_LEN, log_reason(imsg.data));
+ if (imsg.hdr.len == IMSG_HEADER_SIZE +
+ REASON_LEN && ((char *)imsg.data)[0])
+ log_info("reload due to: %s",
+ log_reason(imsg.data));
}
break;
case IMSG_CTL_FIB_COUPLE: