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:
Maxim Konovalov 2006-05-21 17:52:08 +00:00
parent 2440a45859
commit 635354c446
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=158799

View File

@ -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);