1
0
mirror of https://github.com/openbsd/src.git synced 2026-06-18 15:23:33 +02:00

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.
This commit is contained in:
op
2026-04-16 19:36:04 +00:00
parent 30254ef85d
commit 5263ddf930
+3 -1
View File
@@ -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 <eric@openbsd.org>
@@ -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);