diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2023-10-14 09:46:15 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2023-10-14 09:46:15 +0000 |
commit | 5c45faf8b3dbdbe9ee41df6f5e44ca9879b1be3d (patch) | |
tree | 4b2e25c5d53d697113a6f560945a4324f1c07623 /regress/sys/kern | |
parent | 7529f9f8e4f903d791f2404abf48ad36be826174 (diff) |
Rewrite log_peer_info() and log_peer_warn[x]()
Passing the peer description as part of the format string was a bad idea
since the peer description may include some % signs (e.g. for link local
IPv6 addresses). So instead of asprintf a new fmt string use vasprintf
to get the message and then use logit("%s: %s", peer_info, msg).
OK tb@
Diffstat (limited to 'regress/sys/kern')
0 files changed, 0 insertions, 0 deletions