ndpiReader: fix print of flow payload (#1960)

This commit is contained in:
Ivan Nardi 2023-05-04 11:52:48 +02:00 committed by GitHub
parent a11ddd2dc4
commit 02a2c80453
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1746,12 +1746,12 @@ static void printFlow(u_int32_t id, struct ndpi_flow_info *flow, u_int16_t threa
if(flow->flow_payload && (flow->flow_payload_len > 0)) {
u_int i;
printf("[Payload: ");
fprintf(out, "[Payload: ");
for(i=0; i<flow->flow_payload_len; i++)
printf("%c", isspace(flow->flow_payload[i]) ? '.' : flow->flow_payload[i]);
fprintf(out, "%c", isspace(flow->flow_payload[i]) ? '.' : flow->flow_payload[i]);
printf("]");
fprintf(out, "]");
}
fprintf(out, "\n");