Check return value from soaccept().
Coverity: 1376209
This commit is contained in:
parent
7d61b9ae69
commit
32c3f17a23
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user