diff options
author | Gilles Chehade <gilles@poolp.org> | 2019-07-24 21:52:17 +0200 |
---|---|---|
committer | Gilles Chehade <gilles@poolp.org> | 2019-07-24 21:52:17 +0200 |
commit | 3d9f0070d8127dbaa523e5304dce79c94ee4b1f4 (patch) | |
tree | 1567f44887ec4e57e0f4e221dcd09a75a6fc508d /smtpd/to.c | |
parent | sync (diff) | |
download | OpenSMTPD-3d9f0070d8127dbaa523e5304dce79c94ee4b1f4.tar.xz OpenSMTPD-3d9f0070d8127dbaa523e5304dce79c94ee4b1f4.zip |
sync
Diffstat (limited to 'smtpd/to.c')
-rw-r--r-- | smtpd/to.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; } |