From 5263ddf930df823d60262e91b3d92d8d01ff500f Mon Sep 17 00:00:00 2001 From: op Date: Thu, 16 Apr 2026 19:36:04 +0000 Subject: [PATCH] don't lowercase K_AUTH lookups this diff has circulated for a while, being written and re-written by different people. In this case, I'm taking Pietro Cerutti's version. --- usr.sbin/smtpd/table.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/usr.sbin/smtpd/table.c b/usr.sbin/smtpd/table.c index aca013debea..c8a08b1df80 100644 --- a/usr.sbin/smtpd/table.c +++ b/usr.sbin/smtpd/table.c @@ -1,4 +1,4 @@ -/* $OpenBSD: table.c,v 1.54 2024/06/09 10:13:05 gilles Exp $ */ +/* $OpenBSD: table.c,v 1.55 2026/04/16 19:36:04 op Exp $ */ /* * Copyright (c) 2013 Eric Faurot @@ -148,6 +148,8 @@ table_lookup(struct table *table, enum table_service kind, const char *key, log_warnx("warn: lookup key too long: %s", key); errno = EINVAL; } + else if (kind == K_AUTH) + r = table->t_backend->lookup(table, kind, key, NULL); else r = table->t_backend->lookup(table, kind, lkey, lk ? &buf : NULL);