summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgilles <gilles@openbsd.org>2012-07-15 17:36:42 +0000
committergilles <gilles@openbsd.org>2012-07-15 17:36:42 +0000
commit83ab4231d087f4a41affc07b1d0c82c13d5751f0 (patch)
treee95b7cf1948c81be87b9a0ae674d8f56a08941c9
parentfix example (diff)
downloadwireguard-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.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) &&