提交 d3d880ce 编写于 作者: A Andy Polyakov

err/err.c: fix "wraparound" bug in ERR_set_error_data.

Reviewed-by: NRich Salz <rsalz@openssl.org>
上级 9ef73a6f
......@@ -730,8 +730,6 @@ void ERR_set_error_data(char *data, int flags)
return;
i = es->top;
if (i == 0)
i = ERR_NUM_ERRORS - 1;
err_clear_data(es, i);
es->err_data[i] = data;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册