Check return value from soaccept().

Coverity:	1376209
This commit is contained in:
Gleb Smirnoff 2017-06-14 16:13:20 +00:00
parent fecabb72e1
commit 7737de9515

View File

@ -1184,7 +1184,8 @@ ng_ksocket_accept(priv_p priv)
if (error)
return (error);
soaccept(so, &sa);
if ((error = soaccept(so, &sa)) != 0)
return (error);
len = OFFSETOF(struct ng_ksocket_accept, addr);
if (sa != NULL)