aboutsummaryrefslogtreecommitdiffstats
path: root/nflog.c
diff options
context:
space:
mode:
Diffstat (limited to 'nflog.c')
-rw-r--r--nflog.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nflog.c b/nflog.c
index 455ab50..6d30d32 100644
--- a/nflog.c
+++ b/nflog.c
@@ -74,7 +74,7 @@ static int handle_packet(struct nflog_g_handle *gh, struct nfgenmsg *nfmsg,
entry->uid = (uint32_t)~0;
// get current timestamp
- time(&entry->timestamp);
+ entry->timestamp = time(NULL);
nf->header->n_entries++;
}