From a3f92dc1512276794fa729acd22aa26bc42e44ff Mon Sep 17 00:00:00 2001 From: op Date: Wed, 24 Apr 2024 21:31:31 +0000 Subject: [PATCH] fix error return in fork_proc_backend(); ok gilles@ --- usr.sbin/smtpd/smtpd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.sbin/smtpd/smtpd.c b/usr.sbin/smtpd/smtpd.c index 5499347f8fd..9f9480053e5 100644 --- a/usr.sbin/smtpd/smtpd.c +++ b/usr.sbin/smtpd/smtpd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: smtpd.c,v 1.349 2024/02/03 15:50:00 op Exp $ */ +/* $OpenBSD: smtpd.c,v 1.350 2024/04/24 21:31:31 op Exp $ */ /* * Copyright (c) 2008 Gilles Chehade @@ -1137,7 +1137,7 @@ fork_proc_backend(const char *key, const char *conf, const char *procname) if (strlcpy(name, conf, sizeof(name)) >= sizeof(name)) { log_warnx("warn: %s-proc: conf too long", key); - return (0); + return (-1); } arg = strchr(name, ':'); -- 2.20.1