From: op Date: Wed, 24 Apr 2024 21:31:31 +0000 (+0000) Subject: fix error return in fork_proc_backend(); ok gilles@ X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=a3f92dc1512276794fa729acd22aa26bc42e44ff;p=openbsd fix error return in fork_proc_backend(); ok gilles@ --- 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, ':');