修正certstore_rpc_on_succ()中添加字符串结尾0导致内存越界的问题

This commit is contained in:
luqiuwen
2019-01-08 15:09:38 +06:00
parent c303326c40
commit 41eca75fa3
2 changed files with 11 additions and 8 deletions

View File

@@ -26,8 +26,7 @@ int decrypt_mirror_on_open_cb(const struct tfe_stream * stream, unsigned int thr
enum tfe_stream_action decrypt_mirror_on_data_cb(const struct tfe_stream * stream, unsigned int thread_id,
enum tfe_conn_dir dir, const unsigned char * data, size_t len, void ** pme)
{
int ret=0;
ret=mirror_stream_write(dir, data,len, pme, thread_id);
mirror_stream_write(dir, data,len, pme, thread_id);
return ACTION_FORWARD_DATA;
}