aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/netmon.c
diff options
context:
space:
mode:
Diffstat (limited to 'wiretap/netmon.c')
-rw-r--r--wiretap/netmon.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/wiretap/netmon.c b/wiretap/netmon.c
index a5ac170995..761b7afbc0 100644
--- a/wiretap/netmon.c
+++ b/wiretap/netmon.c
@@ -516,7 +516,13 @@ again:
switch (netmon->version_major) {
case 1:
- delta = ((gint32)pletohl(&hdr.hdr_1_x.ts_delta))*1000;
+ /*
+ * According to Paul Long, this offset is unsigned.
+ * It's 32 bits, so the maximum value will fit in
+ * a gint64 such as delta, even after multiplying
+ * it by 1000.
+ */
+ delta = ((guint32)pletohl(&hdr.hdr_1_x.ts_delta))*1000;
break;
case 2: