summaryrefslogtreecommitdiff
path: root/libexec/spamd
diff options
context:
space:
mode:
Diffstat (limited to 'libexec/spamd')
-rw-r--r--libexec/spamd/spamd-setup.pl4
-rw-r--r--libexec/spamd/spamd.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/libexec/spamd/spamd-setup.pl b/libexec/spamd/spamd-setup.pl
index 4bc1332f4c8..939331f32c2 100644
--- a/libexec/spamd/spamd-setup.pl
+++ b/libexec/spamd/spamd-setup.pl
@@ -1,6 +1,6 @@
#!/usr/bin/perl
-# $OpenBSD: spamd-setup.pl,v 1.2 2003/03/03 14:49:59 deraadt Exp $
+# $OpenBSD: spamd-setup.pl,v 1.3 2003/03/04 05:54:53 beck Exp $
#
# Copyright (c) 2003 Bob Beck <beck@openbsd.org>. All rights reserved.
#
@@ -194,7 +194,7 @@ sub addblack () {
# tell spamd about it
$remote = '127.0.0.1';
- $port = 8025;
+ $port = 8026;
$iaddr = inet_aton($remote);
$paddr = sockaddr_in($port, $iaddr);
$proto = getprotobyname('tcp');
diff --git a/libexec/spamd/spamd.c b/libexec/spamd/spamd.c
index 36764c409c0..800c551e3dc 100644
--- a/libexec/spamd/spamd.c
+++ b/libexec/spamd/spamd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: spamd.c,v 1.20 2003/03/03 19:35:17 deraadt Exp $ */
+/* $OpenBSD: spamd.c,v 1.21 2003/03/04 05:54:53 beck Exp $ */
/*
* Copyright (c) 2002 Theo de Raadt. All rights reserved.
@@ -784,7 +784,7 @@ main(int argc, char *argv[])
lin.sin_len = sizeof(sin);
lin.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
lin.sin_family = AF_INET;
- lin.sin_port = htons(port);
+ lin.sin_port = htons(port + 1);
if (bind(conflisten, (struct sockaddr *)&lin, sizeof lin) == -1)
err(1, "bind local");