diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2020-05-11 16:59:20 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2020-05-11 16:59:20 +0000 |
commit | e23c5c3bda879b85859a7d1376738d45c0ccfb9f (patch) | |
tree | ba680b4e92880a554475e9342a57680299158319 /usr.sbin/bgpd | |
parent | d0b19c5a4b8089eb640a20276e5817c0d2225165 (diff) |
There is no reason to limit the string length of log_reason() to REASON_LEN
charactars. Also fix a long line.
OK benno@ deraadt@
Diffstat (limited to 'usr.sbin/bgpd')
-rw-r--r-- | usr.sbin/bgpd/bgpd.c | 10 |
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: |