When port number specified on command line, htons was missing
authorEzra Peisach <epeisach@mit.edu>
Thu, 27 Apr 1995 05:10:51 +0000 (05:10 +0000)
committerEzra Peisach <epeisach@mit.edu>
Thu, 27 Apr 1995 05:10:51 +0000 (05:10 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5533 dc483132-0cff-0310-8789-dd5450dbe970

src/appl/bsd/ChangeLog
src/appl/bsd/krcp.c

index 3605fdc86103efda9bd9d81fb9399db47a2880ef..f3288005ebc3c22cd6f02bda49ab877266bf8df7 100644 (file)
@@ -1,3 +1,8 @@
+Thu Apr 27 01:09:19 1995  Ezra Peisach  <epeisach@kangaroo.mit.edu>
+
+       * 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.
index 25f36dce13b68b3444abc88dfb59b580cfbec9df..eb139acc977ee706fefdb9cc298f42a4116bc94e 100644 (file)
@@ -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':