aboutsummaryrefslogtreecommitdiffstats
path: root/rcfile_y.y
diff options
context:
space:
mode:
Diffstat (limited to 'rcfile_y.y')
-rw-r--r--rcfile_y.y11
1 files changed, 8 insertions, 3 deletions
diff --git a/rcfile_y.y b/rcfile_y.y
index cda010c2..2e99e62b 100644
--- a/rcfile_y.y
+++ b/rcfile_y.y
@@ -162,10 +162,15 @@ serv_option : AKA alias_list
#endif /* INET6_ENABLE */
}
| PORT NUMBER {
-#if !INET6_ENABLE
+#if INET6_ENABLE
+ int port = $2;
+ char buf[10];
+ sprintf(buf, "%d", port);
+ current.server.service = xstrdup(buf);
+#else
current.server.port = $2;
-#endif /* !INET6_ENABLE */
- }
+#endif /* INET6_ENABLE */
+ }
| INTERVAL NUMBER {current.server.interval = $2;}
| PREAUTHENTICATE PASSWORD {current.server.preauthenticate = A_PASSWORD;}
| PREAUTHENTICATE KERBEROS4 {current.server.preauthenticate = A_KERBEROS_V4;}