From d41c30f40ee5b1e81f41bd523f883e23ddeaae46 Mon Sep 17 00:00:00 2001 From: Sam Hartman Date: Mon, 9 Feb 2004 23:20:47 +0000 Subject: [PATCH] Call htons for default port of password server Ticket: 2171 Status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16047 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/os/ChangeLog | 4 ++++ src/lib/krb5/os/changepw.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/lib/krb5/os/ChangeLog b/src/lib/krb5/os/ChangeLog index d28b0093e..556dd3cf1 100644 --- a/src/lib/krb5/os/ChangeLog +++ b/src/lib/krb5/os/ChangeLog @@ -1,3 +1,7 @@ +2004-02-09 Sam Hartman + + * changepw.c (krb5_locate_kpasswd): Run htons on the default port + 2003-12-22 Jeffrey Altman * dnssrv.c: wrap within #ifdef KRB5_DNS_LOOKUP to prevent references diff --git a/src/lib/krb5/os/changepw.c b/src/lib/krb5/os/changepw.c index 780f0c058..df558b6f2 100644 --- a/src/lib/krb5/os/changepw.c +++ b/src/lib/krb5/os/changepw.c @@ -53,7 +53,7 @@ krb5_locate_kpasswd(krb5_context context, const krb5_data *realm, code = krb5int_locate_server (context, realm, addrlist, 0, "kpasswd_server", "_kpasswd", 0, - DEFAULT_KPASSWD_PORT, 0, 0); + htons(DEFAULT_KPASSWD_PORT), 0, 0); if (code == KRB5_REALM_CANT_RESOLVE || code == KRB5_REALM_UNKNOWN) { code = krb5int_locate_server (context, realm, addrlist, 0, "admin_server", "_kerberos-adm", 1, -- 2.26.2