diff options
author | Campus <campus@ntop.org> | 2017-04-15 00:40:01 +0200 |
---|---|---|
committer | Campus <campus@ntop.org> | 2017-04-15 00:40:01 +0200 |
commit | 2b0809f3dc297289f9413db4dde2eaa109a3603e (patch) | |
tree | 11f642948e9b6a1dbe3410a8872bf16e22745efb /example/ndpiReader.c | |
parent | 29cd6ef9942188633b79b5c1fe62360f048a6450 (diff) |
name correction for llc_snap header and minor fix
Diffstat (limited to 'example/ndpiReader.c')
-rw-r--r-- | example/ndpiReader.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/example/ndpiReader.c b/example/ndpiReader.c index 3df43a9fe..b32650871 100644 --- a/example/ndpiReader.c +++ b/example/ndpiReader.c @@ -1331,7 +1331,7 @@ static void pcap_packet_callback_checked(u_char *args, u_int16_t thread_id = *((u_int16_t*)args); /* allocate an exact size buffer to check overflows */ - uint8_t *packet_checked = malloc(header->caplen); /* HEAP OVERFLOW !!! */ + uint8_t *packet_checked = malloc(header->caplen); memcpy(packet_checked, packet, header->caplen); p = ndpi_workflow_process_packet(ndpi_thread_info[thread_id].workflow, header, packet_checked); |