From: Sam Hartman Date: Mon, 9 Feb 2004 23:20:47 +0000 (+0000) Subject: Call htons for default port of password server X-Git-Tag: krb5-1.4-beta1~631 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d41c30f40ee5b1e81f41bd523f883e23ddeaae46;p=krb5.git 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 --- 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,