提交 00d565cf 编写于 作者: R Robert Swiecki 提交者: Rich Salz

Don't add write errors into bytecounts

Signed-off-by: NRich Salz <rsalz@openssl.org>
Reviewed-by: NMatt Caswell <matt@openssl.org>
上级 6383d316
...@@ -2290,8 +2290,10 @@ static int sv_body(char *hostname, int s, int stype, unsigned char *context) ...@@ -2290,8 +2290,10 @@ static int sv_body(char *hostname, int s, int stype, 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;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册