Call htons for default port of password server
authorSam Hartman <hartmans@mit.edu>
Mon, 9 Feb 2004 23:20:47 +0000 (23:20 +0000)
committerSam Hartman <hartmans@mit.edu>
Mon, 9 Feb 2004 23:20:47 +0000 (23:20 +0000)
Ticket: 2171
Status: open

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16047 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/os/ChangeLog
src/lib/krb5/os/changepw.c

index d28b0093e2ca27d162df14ee7bd68fe6d37563dc..556dd3cf1950dd71428622cbda866370c3769a57 100644 (file)
@@ -1,3 +1,7 @@
+2004-02-09  Sam Hartman  <hartmans@mit.edu>
+
+       * changepw.c (krb5_locate_kpasswd): Run htons on the default port
+
 2003-12-22  Jeffrey Altman <jaltman@mit.edu>
 
     * dnssrv.c:  wrap within #ifdef KRB5_DNS_LOOKUP to prevent references
index 780f0c05856eeb9a3536e33c3073e10aab14d59c..df558b6f2527842e7d5069414fad50512484f10a 100644 (file)
@@ -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,