aboutsummaryrefslogtreecommitdiffstats
path: root/smtpd/to.c
diff options
context:
space:
mode:
authorGilles Chehade <gilles@poolp.org>2019-07-24 21:52:17 +0200
committerGilles Chehade <gilles@poolp.org>2019-07-24 21:52:17 +0200
commit3d9f0070d8127dbaa523e5304dce79c94ee4b1f4 (patch)
tree1567f44887ec4e57e0f4e221dcd09a75a6fc508d /smtpd/to.c
parentsync (diff)
downloadOpenSMTPD-3d9f0070d8127dbaa523e5304dce79c94ee4b1f4.tar.xz
OpenSMTPD-3d9f0070d8127dbaa523e5304dce79c94ee4b1f4.zip
sync
Diffstat (limited to 'smtpd/to.c')
-rw-r--r--smtpd/to.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/smtpd/to.c b/smtpd/to.c
index 6f8592dc..2462b489 100644
--- a/smtpd/to.c
+++ b/smtpd/to.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: to.c,v 1.35 2018/12/30 23:09:58 guenther Exp $ */
+/* $OpenBSD: to.c,v 1.36 2019/07/22 23:01:48 kn Exp $ */
/*
* Copyright (c) 2009 Jacek Masiulaniec <jacekm@dobremiasto.net>
@@ -385,7 +385,7 @@ text_to_relayhost(struct relayhost *relay, const char *s)
/* finally, we extract the port */
p = beg + len;
if (*p == ':') {
- relay->port = strtonum(p+1, 1, 0xffff, &errstr);
+ relay->port = strtonum(p+1, 1, IPPORT_HILASTAUTO, &errstr);
if (errstr)
return 0;
}