diff options
author | 2012-07-15 17:36:42 +0000 | |
---|---|---|
committer | 2012-07-15 17:36:42 +0000 | |
commit | 83ab4231d087f4a41affc07b1d0c82c13d5751f0 (patch) | |
tree | e95b7cf1948c81be87b9a0ae674d8f56a08941c9 | |
parent | fix example (diff) | |
download | wireguard-openbsd-83ab4231d087f4a41affc07b1d0c82c13d5751f0.tar.xz wireguard-openbsd-83ab4231d087f4a41affc07b1d0c82c13d5751f0.zip |
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>
-rw-r--r-- | usr.sbin/smtpd/mta_session.c | 4 |
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) && |