diff options
author | Gilles Chehade <gilles@cvs.openbsd.org> | 2017-05-01 09:29:08 +0000 |
---|---|---|
committer | Gilles Chehade <gilles@cvs.openbsd.org> | 2017-05-01 09:29:08 +0000 |
commit | 9890024c889354a9a7c8b7eb3796e016d26a903c (patch) | |
tree | 790801ecb81d9aebf26ced400a0e9e7c7a46e7db | |
parent | 3cbb918f85281c587d2612c62f81ba0c47b7c62a (diff) |
in function used for tracing, display unknown lookup types as "???"
diff from Wolf480pl
-rw-r--r-- | usr.sbin/smtpd/table.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/smtpd/table.c b/usr.sbin/smtpd/table.c index 21ee2372860..afb71788feb 100644 --- a/usr.sbin/smtpd/table.c +++ b/usr.sbin/smtpd/table.c @@ -1,4 +1,4 @@ -/* $OpenBSD: table.c,v 1.23 2016/01/04 13:30:20 jung Exp $ */ +/* $OpenBSD: table.c,v 1.24 2017/05/01 09:29:07 gilles Exp $ */ /* * Copyright (c) 2013 Eric Faurot <eric@openbsd.org> @@ -694,6 +694,7 @@ table_dump_lookup(enum table_service s, union lookup *lk) break; default: + (void)strlcpy(buf, "???", sizeof(buf)); break; } |