instead of host byte order.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@3890
dc483132-0cff-0310-8789-
dd5450dbe970
--- /dev/null
+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.
+
+
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;