From: Ezra Peisach Date: Thu, 27 Apr 1995 05:10:51 +0000 (+0000) Subject: When port number specified on command line, htons was missing X-Git-Tag: krb5-1.0-beta5~219 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9a98dccaa852593b37f03e1e284ae245672ae06f;p=krb5.git When port number specified on command line, htons was missing git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5533 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/appl/bsd/ChangeLog b/src/appl/bsd/ChangeLog index 3605fdc86..f3288005e 100644 --- a/src/appl/bsd/ChangeLog +++ b/src/appl/bsd/ChangeLog @@ -1,3 +1,8 @@ +Thu Apr 27 01:09:19 1995 Ezra Peisach + + * krcp.c: (main): Missing htons on port number when specified on + command line. + Wed Apr 26 21:09:34 1995 Chris Provenzano (proven@mit.edu) * kcmd.c (kcmd()) : Don't use hp->h_name use host_save instead. diff --git a/src/appl/bsd/krcp.c b/src/appl/bsd/krcp.c index 25f36dce1..eb139acc9 100644 --- a/src/appl/bsd/krcp.c +++ b/src/appl/bsd/krcp.c @@ -187,7 +187,7 @@ main(argc, argv) argc--, argv++; if (argc == 0) usage(); - port = atoi(*argv); + port = htons(atoi(*argv)); goto next_arg; case 'N':