(main): convert `debug_port' to network byte order
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5286 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 1998 Kungliga Tekniska H<>gskolan
|
* Copyright (c) 1997, 1998, 1999 Kungliga Tekniska H<>gskolan
|
||||||
* (Royal Institute of Technology, Stockholm, Sweden).
|
* (Royal Institute of Technology, Stockholm, Sweden).
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
@@ -142,6 +142,8 @@ main(int argc, char **argv)
|
|||||||
if(debug_port == 0)
|
if(debug_port == 0)
|
||||||
debug_port = krb5_getportbyname (context, "kerberos-adm",
|
debug_port = krb5_getportbyname (context, "kerberos-adm",
|
||||||
"tcp", 749);
|
"tcp", 749);
|
||||||
|
else
|
||||||
|
debug_port = htons(debug_port);
|
||||||
mini_inetd(debug_port);
|
mini_inetd(debug_port);
|
||||||
}
|
}
|
||||||
if(realm)
|
if(realm)
|
||||||
|
Reference in New Issue
Block a user