mirror of
https://github.com/vel21ripn/nDPI.git
synced 2026-05-02 00:40:17 +00:00
ndpiReader: fix print of flow payload (#1960)
This commit is contained in:
parent
a11ddd2dc4
commit
02a2c80453
1 changed files with 3 additions and 3 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue