detect/ftp: fix -Wshorten-64-to-32 warnings

Ticket: #6186
pull/13283/head
Philippe Antoine 1 year ago committed by Victor Julien
parent 1a13244b4b
commit 148f0ea775

@ -72,7 +72,7 @@ static bool DetectFTPCompletionCodeGetData(DetectEngineThreadCtx *_det_ctx, cons
DEBUG_VALIDATE_BUG_ON(wrapper->response == NULL);
if (index == count) {
*buffer = (const uint8_t *)wrapper->response->code;
*buffer_len = wrapper->response->code_length;
*buffer_len = (uint32_t)wrapper->response->code_length;
return true;
}
count++;

@ -105,7 +105,7 @@ bool EveFTPLogCommand(void *vtx, SCJsonBuilder *jb)
is_cc_array_open = true;
}
SCJbAppendStringFromBytes(
jb, (const uint8_t *)response->code, response->code_length);
jb, (const uint8_t *)response->code, (uint32_t)response->code_length);
}
if (response->length) {
SCJbAppendStringFromBytes(js_resplist, (const uint8_t *)response->response,

Loading…
Cancel
Save