mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
In sbappend*() family of functions clear M_PROTO flags of incoming
mbufs. sbappendstream() already does this in m_demote(). PR: 196174 Sponsored by: Nginx, Inc.
This commit is contained in:
parent
e3ed82bcf7
commit
53b680caa2
1 changed files with 5 additions and 1 deletions
|
|
@ -579,7 +579,7 @@ sbappend_locked(struct sockbuf *sb, struct mbuf *m)
|
|||
|
||||
if (m == 0)
|
||||
return;
|
||||
|
||||
m_clrprotoflags(m);
|
||||
SBLASTRECORDCHK(sb);
|
||||
n = sb->sb_mb;
|
||||
if (n) {
|
||||
|
|
@ -732,6 +732,7 @@ sbappendrecord_locked(struct sockbuf *sb, struct mbuf *m0)
|
|||
|
||||
if (m0 == 0)
|
||||
return;
|
||||
m_clrprotoflags(m0);
|
||||
/*
|
||||
* Put the first mbuf on the queue. Note this permits zero length
|
||||
* records.
|
||||
|
|
@ -777,6 +778,8 @@ sbappendaddr_locked_internal(struct sockbuf *sb, const struct sockaddr *asa,
|
|||
return (0);
|
||||
m->m_len = asa->sa_len;
|
||||
bcopy(asa, mtod(m, caddr_t), asa->sa_len);
|
||||
if (m0)
|
||||
m_clrprotoflags(m0);
|
||||
if (ctrl_last)
|
||||
ctrl_last->m_next = m0; /* concatenate data to control */
|
||||
else
|
||||
|
|
@ -872,6 +875,7 @@ sbappendcontrol_locked(struct sockbuf *sb, struct mbuf *m0,
|
|||
|
||||
if (space > sbspace(sb))
|
||||
return (0);
|
||||
m_clrprotoflags(m0);
|
||||
n->m_next = m0; /* concatenate data to control */
|
||||
|
||||
SBLASTRECORDCHK(sb);
|
||||
|
|
|
|||
Loading…
Reference in a new issue