diff options
| author | liuxueli <[email protected]> | 2022-07-01 18:03:06 +0800 |
|---|---|---|
| committer | liuxueli <[email protected]> | 2022-07-01 18:03:06 +0800 |
| commit | c89e3dc036105c5a14f51cf2be0d1acffb66ba84 (patch) | |
| tree | cffe5459523bd3fe63f8aef650f031aa7fa5c6d2 | |
| parent | 42e2bd020e1c18417a5635cfb3d67be348091ad2 (diff) | |
TSG-10804: 加强获取eml文件名判断逻辑,防止公用结构体指针被误使用导致异常v5.7.5
| -rw-r--r-- | src/tsg_send_log.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tsg_send_log.cpp b/src/tsg_send_log.cpp index b6922d5..50470e1 100644 --- a/src/tsg_send_log.cpp +++ b/src/tsg_send_log.cpp @@ -1234,7 +1234,7 @@ static int set_user_region(struct tsg_log_instance_t *_instance, struct TLD_hand static int set_mail_eml(struct tsg_log_instance_t *_instance, struct TLD_handle_t *_handle, struct streaminfo *a_stream) { struct tsg_conn_sketch_notify_data *notify_mail=(struct tsg_conn_sketch_notify_data *)stream_bridge_async_data_get(a_stream, g_tsg_para.bridge_id[BRIDGE_TYPE_RECV_CONN_SKETCH_DATA]); - if(notify_mail!=NULL && notify_mail->pdata.mail_eml_filename!=NULL) + if(notify_mail!=NULL && notify_mail->pdata.mail_eml_filename!=NULL && notify_mail->protocol==PROTO_MAIL) { TLD_delete(_handle, _instance->id2field[LOG_COMMON_MAIL_EML_FILE].name); TLD_append(_handle, _instance->id2field[LOG_COMMON_MAIL_EML_FILE].name, (void *)notify_mail->pdata.mail_eml_filename, TLD_TYPE_STRING); |
