summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGilles Chehade <gilles@cvs.openbsd.org>2009-03-19 00:40:35 +0000
committerGilles Chehade <gilles@cvs.openbsd.org>2009-03-19 00:40:35 +0000
commit45e86d2c04eb6dd10e3a2c4467ed250d5aa8882b (patch)
tree560d0df2a05c515a0306ffcf972501c3618d094f
parentb493c6dbb14f41e9edde9f49f4568aeefb1e85c0 (diff)
when listen was declared without a port parameter, it would get it wrong
because of a missing htons()
-rw-r--r--usr.sbin/smtpd/parse.y6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/smtpd/parse.y b/usr.sbin/smtpd/parse.y
index 8608d86e270..90d3ce7b226 100644
--- a/usr.sbin/smtpd/parse.y
+++ b/usr.sbin/smtpd/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.28 2009/03/16 23:26:40 gilles Exp $ */
+/* $OpenBSD: parse.y,v 1.29 2009/03/19 00:40:34 gilles Exp $ */
/*
* Copyright (c) 2008 Gilles Chehade <gilles@openbsd.org>
@@ -244,9 +244,9 @@ main : QUEUE INTERVAL interval {
if ($5 == 0) {
if ($1)
- $5 = 487;
+ $5 = htons(465);
else
- $5 = 25;
+ $5 = htons(25);
}
cert = ($6 != NULL) ? $6 : $4;