Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/ftp PR/51043: Yorick Hardy: ftp(1) should use the po...



details:   https://anonhg.NetBSD.org/src/rev/dce75b0f525d
branches:  trunk
changeset: 344571:dce75b0f525d
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Apr 04 23:59:41 2016 +0000

description:
PR/51043: Yorick Hardy: ftp(1) should use the port number for CONNECT

diffstat:

 usr.bin/ftp/fetch.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r 8efc72269582 -r dce75b0f525d usr.bin/ftp/fetch.c
--- a/usr.bin/ftp/fetch.c       Mon Apr 04 23:31:46 2016 +0000
+++ b/usr.bin/ftp/fetch.c       Mon Apr 04 23:59:41 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fetch.c,v 1.222 2016/03/18 18:42:25 christos Exp $     */
+/*     $NetBSD: fetch.c,v 1.223 2016/04/04 23:59:41 christos Exp $     */
 
 /*-
  * Copyright (c) 1997-2015 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: fetch.c,v 1.222 2016/03/18 18:42:25 christos Exp $");
+__RCSID("$NetBSD: fetch.c,v 1.223 2016/04/04 23:59:41 christos Exp $");
 #endif /* not lint */
 
 /*
@@ -847,8 +847,8 @@
        } else
                h = ui->host;
 
-       fetch_printf(fin, "CONNECT %s:%s HTTP/1.1\r\n", h, ui->port);
-       fetch_printf(fin, "Host: %s:%s\r\n", h, ui->port);
+       fetch_printf(fin, "CONNECT %s:%d HTTP/1.1\r\n", h, ui->portnum);
+       fetch_printf(fin, "Host: %s:%d\r\n", h, ui->portnum);
 }
 #endif
 



Home | Main Index | Thread Index | Old Index