aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib/ndpi_cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/ndpi_cache.c b/src/lib/ndpi_cache.c
index 40688c384..a262783bb 100644
--- a/src/lib/ndpi_cache.c
+++ b/src/lib/ndpi_cache.c
@@ -365,7 +365,7 @@ bool ndpi_address_cache_insert(struct ndpi_address_cache *cache,
if(ret == NULL)
return(false); /* No memory */
- memcpy(&ret->addr, &ip_addr, sizeof(addr)),
+ memcpy(&ret->addr, &ip_addr, sizeof(ip_addr)),
ret->expire_epoch = epoch_valid_until,
ret->next = cache->address_cache_root[hash_id];