fix(core): correct parameter order in neu_req_del_tag_copy

- Fix reversed parameter order in neu_req_del_tag_copy call at manager.c:1488
- Add missing return statement on strdup failure in neu_req_del_tag_copy function
This commit is contained in:
ZhouBox
2026-04-09 10:42:33 +08:00
committed by xiang.zhou
parent 7d5670180f
commit cbafa6c37f
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -704,6 +704,7 @@ static inline int neu_req_del_tag_copy(neu_req_del_tag_t *dst,
free(dst->tags[i]);
}
free(dst->tags);
return -1;
}
}
return 0;
+1 -1
View File
@@ -1465,7 +1465,7 @@ static int manager_loop(enum neu_event_io_type type, int fd, void *usr_data)
neu_msg_get_header(msg_copy);
neu_req_del_tag_t *cmd_copy =
(neu_req_del_tag_t *) &header_copy[1];
neu_req_del_tag_copy(cmd, cmd_copy);
neu_req_del_tag_copy(cmd_copy, cmd);
forward_msg(manager, header_copy, app->app_name);
}