From 9a98dccaa852593b37f03e1e284ae245672ae06f Mon Sep 17 00:00:00 2001 From: Ezra Peisach Date: Thu, 27 Apr 1995 05:10:51 +0000 Subject: [PATCH] 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 --- src/appl/bsd/ChangeLog | 5 +++++ src/appl/bsd/krcp.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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': -- 2.26.2