output/ftp: Correct Coverity DEADCODE issue

This commit corrects the deadcode (CID 1465224) issue in
EveFTPLogCommand.
pull/5163/head
Jeff Lucovsky 5 years ago
parent ac70d925f5
commit bd22e0d7a4

@ -67,7 +67,7 @@ static void EveFTPLogCommand(Flow *f, FTPTransaction *tx, JsonBuilder *jb)
js_resplist = jb_new_array(); js_resplist = jb_new_array();
if (unlikely(js_resplist == NULL)) { if (unlikely(js_resplist == NULL)) {
goto fail; return;
} }
} }
jb_set_string(jb, "command", tx->command_descriptor->command_name); jb_set_string(jb, "command", tx->command_descriptor->command_name);
@ -143,13 +143,6 @@ static void EveFTPLogCommand(Flow *f, FTPTransaction *tx, JsonBuilder *jb)
} else { } else {
JB_SET_STRING(jb, "reply_received", "no"); JB_SET_STRING(jb, "reply_received", "no");
} }
return;
fail:
if (js_resplist) {
jb_free(js_resplist);
}
} }

Loading…
Cancel
Save