提交 b22df514 编写于 作者: R Roger A. Light

Clear errno before check.

上级 49ebb585
......@@ -358,6 +358,7 @@ static int dynsec__config_load(void)
cJSON *tree;
/* Load from file */
errno = 0;
fptr = fopen(config_file, "rb");
if(fptr == NULL){
mosquitto_log_printf(MOSQ_LOG_ERR, "Error loading Dynamic security plugin config: File is not readable - check permissions.\n");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册