Don't add write errors into bytecounts
Signed-off-by: Rich Salz <rsalz@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org> (cherry picked from commit 00d565cfbe90fab3b157e644caca4eb4a2ebec79)
This commit is contained in:
parent
690d040b2e
commit
2dff75f4df
@ -2037,8 +2037,10 @@ static int sv_body(char *hostname, int s, unsigned char *context)
|
|||||||
ret = 1;
|
ret = 1;
|
||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
l += k;
|
if (k > 0) {
|
||||||
i -= k;
|
l += k;
|
||||||
|
i -= k;
|
||||||
|
}
|
||||||
if (i <= 0)
|
if (i <= 0)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user