Commit 0bec737b authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

An assert to explain stuff to Coverity

parent 80d20364
......@@ -525,6 +525,7 @@ mct_callback(void *priv, const struct suckaddr *sa)
VJ_master(JAIL_MASTER_HIGH);
sock = VTCP_listen(sa, 10, &err);
VJ_master(JAIL_MASTER_LOW);
assert(sock != 0); // We know where stdin is
if (sock > 0) {
VTCP_myname(sock, abuf, sizeof abuf, pbuf, sizeof pbuf);
VSB_printf(vsb, "%s %s\n", abuf, pbuf);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment