mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
tcp bblog: use correct length
The length of tldl_reason is TCP_LOG_REASON_LEN, not TCP_LOG_ID_LEN. No functional change intended. Reported by: Coverity Scan CID: 1418074 CID: 1418276 Reviewed by: glebius, rscheff MFC after: 3 days Sponsored by: Netflix, Inc. Differential Revision: https://reviews.freebsd.org/D44510
This commit is contained in:
parent
2cab4be46b
commit
ed505f893a
1 changed files with 2 additions and 2 deletions
|
|
@ -2442,7 +2442,7 @@ tcp_log_dump_tp_logbuf(struct tcpcb *tp, char *reason, int how, bool force)
|
|||
if (reason != NULL)
|
||||
strlcpy(entry->tldl_reason, reason, TCP_LOG_REASON_LEN);
|
||||
else
|
||||
strlcpy(entry->tldl_reason, "UNKNOWN", TCP_LOG_ID_LEN);
|
||||
strlcpy(entry->tldl_reason, "UNKNOWN", TCP_LOG_REASON_LEN);
|
||||
entry->tldl_ie = inp->inp_inc.inc_ie;
|
||||
if (inp->inp_inc.inc_flags & INC_ISIPV6)
|
||||
entry->tldl_af = AF_INET6;
|
||||
|
|
@ -2532,7 +2532,7 @@ tcp_log_dump_node_logbuf(struct tcp_log_id_node *tln, char *reason, int how)
|
|||
if (reason != NULL)
|
||||
strlcpy(entry->tldl_reason, reason, TCP_LOG_REASON_LEN);
|
||||
else
|
||||
strlcpy(entry->tldl_reason, "UNKNOWN", TCP_LOG_ID_LEN);
|
||||
strlcpy(entry->tldl_reason, "UNKNOWN", TCP_LOG_REASON_LEN);
|
||||
entry->tldl_ie = tln->tln_ie;
|
||||
entry->tldl_entries = tln->tln_entries;
|
||||
entry->tldl_count = tln->tln_count;
|
||||
|
|
|
|||
Loading…
Reference in a new issue