diff options
author | 2006-04-08 01:52:09 +0000 | |
---|---|---|
committer | 2006-04-08 01:52:09 +0000 | |
commit | 1e03ecd64298d12fb8b9db5e3be9585d020d9561 (patch) | |
tree | eb6dfc1effb9a6a56b3fcedaf8c8bdbefd6c7ab9 /usr.sbin/tcpdump/smbutil.c | |
parent | Memory leak on fork error plus change time variable to prevent (diff) | |
download | wireguard-openbsd-1e03ecd64298d12fb8b9db5e3be9585d020d9561.tar.xz wireguard-openbsd-1e03ecd64298d12fb8b9db5e3be9585d020d9561.zip |
Since moritz@ says, ``this can't happen, because no fmt string
passed to fdata() uses a T-value not caught by the switch,'' change
to a fatal error.
OK jaredy@ and moritz@
Diffstat (limited to 'usr.sbin/tcpdump/smbutil.c')
-rw-r--r-- | usr.sbin/tcpdump/smbutil.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/usr.sbin/tcpdump/smbutil.c b/usr.sbin/tcpdump/smbutil.c index f940a4bf44f..08507be9f6f 100644 --- a/usr.sbin/tcpdump/smbutil.c +++ b/usr.sbin/tcpdump/smbutil.c @@ -1,4 +1,4 @@ -/* $OpenBSD: smbutil.c,v 1.4 2006/04/07 05:16:52 ray Exp $ */ +/* $OpenBSD: smbutil.c,v 1.5 2006/04/08 01:52:09 ray Exp $ */ /* Copyright (C) Andrew Tridgell 1995-1999 @@ -13,7 +13,7 @@ #ifndef lint static const char rcsid[] = - "@(#) $Header: /home/cvs/src/usr.sbin/tcpdump/smbutil.c,v 1.4 2006/04/07 05:16:52 ray Exp $"; + "@(#) $Header: /home/cvs/src/usr.sbin/tcpdump/smbutil.c,v 1.5 2006/04/08 01:52:09 ray Exp $"; #endif #include <sys/param.h> @@ -494,8 +494,7 @@ static const uchar *fdata1(const uchar *buf, const char *fmt, const uchar *maxbu buf+=8; break; default: - t = 0; - break; + error("fdata1: invalid fmt: %s", fmt); } printf("%s",t?asctime(localtime(&t)):"NULL "); fmt++; while (isdigit(*fmt)) fmt++; |