diff options
author | Guy Harris <guy@alum.mit.edu> | 2003-11-25 20:26:40 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2003-11-25 20:26:40 +0000 |
commit | ade7d05cdf3c9b089316c46e3c99c1fed4dfe44d (patch) | |
tree | 48c76046255c034c190138347613b85b20101bb3 /packet-ucp.c | |
parent | 26d021d8eb52c18d9c329a4d729a67e889077cc8 (diff) |
From Reinhard Speyerer: handle 10-digit UCP dates, which lack a seconds
value.
svn path=/trunk/; revision=9092
Diffstat (limited to 'packet-ucp.c')
-rw-r--r-- | packet-ucp.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/packet-ucp.c b/packet-ucp.c index c3fbc3de2b..10c313208e 100644 --- a/packet-ucp.c +++ b/packet-ucp.c @@ -2,7 +2,7 @@ * Routines for Universal Computer Protocol dissection * Copyright 2001, Tom Uijldert <tom.uijldert@cmg.nl> * - * $Id: packet-ucp.c,v 1.20 2003/06/26 09:05:49 guy Exp $ + * $Id: packet-ucp.c,v 1.21 2003/11/25 20:26:40 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -670,6 +670,8 @@ ucp_mktime(char *datestr) r_time.tm_min = 10 * (datestr[8] - '0') + (datestr[9] - '0'); if (datestr[10]) r_time.tm_sec = 10 * (datestr[10] - '0') + (datestr[11] - '0'); + else + r_time.tm_sec = 0; r_time.tm_isdst = -1; return mktime(&r_time); } |