sync with OpenBSD -current
This commit is contained in:
parent
3af7aba2fd
commit
222e583e28
80 changed files with 1944 additions and 657 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue