diff options
author | Chris Maynard <Christopher.Maynard@GTECH.COM> | 2012-05-25 02:04:29 +0000 |
---|---|---|
committer | Chris Maynard <Christopher.Maynard@GTECH.COM> | 2012-05-25 02:04:29 +0000 |
commit | b2f2e1a675661585d6b9dd2c88bbf72aa34aa834 (patch) | |
tree | 199021271a546d27ff1dcc83614da537af0c00de | |
parent | 973b45c401c949dbfd8d92e7a673b1568ccf4afd (diff) |
In ns_hrtime2nsec(), cast "val" to guint64 to fix Coverity CID 702389 Unintentional integer overflow.
svn path=/trunk/; revision=42846
-rw-r--r-- | wiretap/netscaler.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wiretap/netscaler.c b/wiretap/netscaler.c index d4a3cc9db5..68ab88271d 100644 --- a/wiretap/netscaler.c +++ b/wiretap/netscaler.c @@ -476,7 +476,7 @@ static guint64 ns_hrtime2nsec(guint32 tm) { case NSPR_HRTIME_SEC: return (guint64)val*1000000000; case NSPR_HRTIME_MSEC: return (guint64)val*1000000; - case NSPR_HRTIME_USEC: return (guint32)val*1000; + case NSPR_HRTIME_USEC: return (guint64)val*1000; case NSPR_HRTIME_NSEC: return val; } return tm; |