Fix regression from r354484. Don't leak pcb lock if cr_canseeinpcb()

returns non-zero.

PR:		242415
This commit is contained in:
Gleb Smirnoff 2019-12-04 22:41:52 +00:00
parent 61322a0a8a
commit e5a084d020

View File

@ -2204,9 +2204,11 @@ tcp_pcblist(SYSCTL_HANDLER_ARGS)
error = SYSCTL_OUT(req, &xt, sizeof xt);
if (error)
break;
else
continue;
}
} else
INP_RUNLOCK(inp);
}
INP_RUNLOCK(inp);
}
NET_EPOCH_EXIT(et);