sync with OpenBSD -current

This commit is contained in:
purplerain 2024-05-29 01:16:43 +00:00
parent 3af7aba2fd
commit 222e583e28
Signed by: purplerain
GPG key ID: F42C07F07E2E35B7
80 changed files with 1944 additions and 657 deletions

View file

@ -1,4 +1,4 @@
/* $OpenBSD: table.c,v 1.52 2024/05/07 12:10:06 op Exp $ */
/* $OpenBSD: table.c,v 1.53 2024/05/28 07:10:30 op Exp $ */
/*
* Copyright (c) 2013 Eric Faurot <eric@openbsd.org>
@ -245,6 +245,7 @@ table_create(struct smtpd *conf, const char *backend, const char *name,
fatalx("table_create: backend \"%s\" does not exist", backend);
t = xcalloc(1, sizeof(*t));
t->t_services = tb->services;
t->t_backend = tb;
if (config) {
@ -341,7 +342,7 @@ table_check_type(struct table *t, uint32_t mask)
int
table_check_service(struct table *t, uint32_t mask)
{
return t->t_backend->services & mask;
return t->t_services & mask;
}
int