Pick up from NetBSD a change to squelch a "should not happen"
authorguy <guy>
Fri, 15 Jun 2007 19:49:15 +0000 (19:49 +0000)
committerguy <guy>
Fri, 15 Jun 2007 19:49:15 +0000 (19:49 +0000)
uninitialized reference found by Coverity.

smbutil.c

index 100b78316faf6b5c548dd776de29b0ef60ccaa4a..86cbb8dd17769d7eedd9056d988de1555a746660 100644 (file)
--- a/smbutil.c
+++ b/smbutil.c
@@ -12,7 +12,7 @@
 
 #ifndef lint
 static const char rcsid[] _U_ =
-     "@(#) $Header: /tcpdump/master/tcpdump/smbutil.c,v 1.36.2.1 2005-04-21 04:09:58 guy Exp $";
+     "@(#) $Header: /tcpdump/master/tcpdump/smbutil.c,v 1.36.2.2 2007-06-15 19:49:15 guy Exp $";
 #endif
 
 #include <tcpdump-stdinc.h>
@@ -745,6 +745,9 @@ smb_fdata1(const u_char *buf, const char *fmt, const u_char *maxbuf,
                t = interpret_long_date(buf);
                buf += 8;
                break;
+           default:
+               t = 0;
+               break;
            }
            if (t != 0) {
                lt = localtime(&t);