New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ftp/eve: Convert to JsonBuilder #5049
Conversation
(cherry picked from commit 6ec8224)
I think this is a bad use of transmute, while the end result is the same, Box::from_raw is more correct as we created this pointer with Box::into_raw. (cherry picked from commit 40b1f51)
This commit converts the FTP logging mechanisms to use JsonBuilder.
This commit removes an unused helper function no longer required/used after conversion to JsonBuilder.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would like to see a SV test for ftp-data.. My quick attempts didn't show ftp-data being logged at all in master.
fail: | ||
if (js_resplist) { | ||
jb_free(js_resplist); | ||
} else { | ||
jb_free(js_respcode_list); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this not free both?
Opened issue 3770 to track. |
Continued in #5070 |
Continuation of #5030
Link to redmine ticket: 3714
Describe changes:
jb_set_string_from_bytes
#suricata-verify-pr:
#suricata-verify-repo:
#suricata-verify-branch:
#suricata-update-pr:
#suricata-update-repo:
#suricata-update-branch:
#libhtp-pr:
#libhtp-repo:
#libhtp-branch: