mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-26 16:18:31 +00:00
o Add missed error check: in ip_ctloutput() sooptcopyin() returns a
result but we never examine it. Reviewed by: rwatson MFC after: 2 weeks
This commit is contained in:
parent
2440a45859
commit
635354c446
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=158799
@ -824,6 +824,10 @@ ip_ctloutput(so, sopt)
|
||||
m->m_len = sopt->sopt_valsize;
|
||||
error = sooptcopyin(sopt, mtod(m, char *), m->m_len,
|
||||
m->m_len);
|
||||
if (error) {
|
||||
m_free(m);
|
||||
break;
|
||||
}
|
||||
INP_LOCK(inp);
|
||||
error = ip_pcbopts(inp, sopt->sopt_name, m);
|
||||
INP_UNLOCK(inp);
|
||||
|
Loading…
Reference in New Issue
Block a user