aboutsummaryrefslogtreecommitdiffstats
path: root/smtpd/smtp.c
diff options
context:
space:
mode:
Diffstat (limited to 'smtpd/smtp.c')
-rw-r--r--smtpd/smtp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/smtpd/smtp.c b/smtpd/smtp.c
index a0ab898b..45492a46 100644
--- a/smtpd/smtp.c
+++ b/smtpd/smtp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: smtp.c,v 1.164 2018/12/23 16:37:53 eric Exp $ */
+/* $OpenBSD: smtp.c,v 1.165 2019/06/28 13:32:51 deraadt Exp $ */
/*
* Copyright (c) 2008 Gilles Chehade <gilles@poolp.org>
@@ -144,7 +144,7 @@ smtp_setup_listeners(void)
opt = 1;
#ifdef SO_REUSEADDR
if (setsockopt(l->fd, SOL_SOCKET, SO_REUSEADDR, &opt,
- sizeof(opt)) < 0)
+ sizeof(opt)) == -1)
fatal("smtpd: setsockopt");
#else
if (setsockopt(l->fd, SOL_SOCKET, SO_REUSEPORT, &opt,