summaryrefslogtreecommitdiff
path: root/usr.sbin/smtpd/mta_session.c
diff options
context:
space:
mode:
authorGilles Chehade <gilles@cvs.openbsd.org>2012-07-15 17:36:43 +0000
committerGilles Chehade <gilles@cvs.openbsd.org>2012-07-15 17:36:43 +0000
commit3d040ad48a3375fa02d1ee2524e80ae4a9eba6d9 (patch)
tree742bc84407ea2e87ea296e94c9149b95b6245773 /usr.sbin/smtpd/mta_session.c
parent252b2ec52f4ea5cf037a81552a0a9ab4d93be3a3 (diff)
when specifying a relay port that's not standart, do not ntohs() the relay
port as it will be done internally by sa_set_port() issue reported by Markus Bergkvist <markus@familjenbergkvist.net>
Diffstat (limited to 'usr.sbin/smtpd/mta_session.c')
-rw-r--r--usr.sbin/smtpd/mta_session.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/smtpd/mta_session.c b/usr.sbin/smtpd/mta_session.c
index 7a07b3f2dd1..17e50500b05 100644
--- a/usr.sbin/smtpd/mta_session.c
+++ b/usr.sbin/smtpd/mta_session.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mta_session.c,v 1.3 2012/06/01 10:46:32 chl Exp $ */
+/* $OpenBSD: mta_session.c,v 1.4 2012/07/15 17:36:42 gilles Exp $ */
/*
* Copyright (c) 2008 Pierre-Yves Ritschard <pyr@openbsd.org>
@@ -112,7 +112,7 @@ mta_session_imsg(struct imsgev *iev, struct imsg *imsg)
}
/* establish port */
- s->port = ntohs(mta_batch->relay.port); /* XXX */
+ s->port = mta_batch->relay.port;
/* use auth? */
if ((mta_batch->relay.flags & F_SSL) &&