From 15ed416cf62a727fe999dd0e1d88d12fde87a5bd Mon Sep 17 00:00:00 2001 From: Theodore Tso Date: Wed, 22 Jun 1994 19:51:28 +0000 Subject: [PATCH] Fixed default port numbers so they are loaded in network byte order instead of host byte order. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@3890 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/os/ChangeLog | 6 ++++++ src/lib/krb5/os/locate_kdc.c | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 src/lib/krb5/os/ChangeLog diff --git a/src/lib/krb5/os/ChangeLog b/src/lib/krb5/os/ChangeLog new file mode 100644 index 000000000..7369f7d5d --- /dev/null +++ b/src/lib/krb5/os/ChangeLog @@ -0,0 +1,6 @@ +Wed Jun 22 15:49:30 1994 Theodore Y. Ts'o (tytso at tsx-11) + + * locate_kdc.c (krb5_locate_kdc): Fixed default port numbers so + they are loaded in network byte order instead of host byte order. + + diff --git a/src/lib/krb5/os/locate_kdc.c b/src/lib/krb5/os/locate_kdc.c index 4f228698a..6c6ff4c4d 100644 --- a/src/lib/krb5/os/locate_kdc.c +++ b/src/lib/krb5/os/locate_kdc.c @@ -68,8 +68,8 @@ krb5_locate_kdc(realm, addr_pp, naddrs) struct hostent *hp; struct servent *sp; #ifdef KRB5_USE_INET - u_short udpport = KRB5_DEFAULT_PORT; - u_short sec_udpport = KRB5_DEFAULT_SEC_PORT; + u_short udpport = htons(KRB5_DEFAULT_PORT); + u_short sec_udpport = htons(KRB5_DEFAULT_SEC_PORT); #endif hostlist = 0; -- 2.26.2