Source-Changes-HG archive

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

[src/trunk]: src/libexec/ftpd correct result code on invalid port number agai...



details:   https://anonhg.NetBSD.org/src/rev/bda0bc61b0ba
branches:  trunk
changeset: 499154:bda0bc61b0ba
user:      itojun <itojun%NetBSD.org@localhost>
date:      Mon Nov 13 15:11:57 2000 +0000

description:
correct result code on invalid port number against EPRT.

diffstat:

 libexec/ftpd/ftpd.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 53e9ce6d7127 -r bda0bc61b0ba libexec/ftpd/ftpd.c
--- a/libexec/ftpd/ftpd.c       Mon Nov 13 15:08:16 2000 +0000
+++ b/libexec/ftpd/ftpd.c       Mon Nov 13 15:11:57 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ftpd.c,v 1.107 2000/11/13 11:52:41 itojun Exp $        */
+/*     $NetBSD: ftpd.c,v 1.108 2000/11/13 15:11:57 itojun Exp $        */
 
 /*
  * Copyright (c) 1997-2000 The NetBSD Foundation, Inc.
@@ -109,7 +109,7 @@
 #if 0
 static char sccsid[] = "@(#)ftpd.c     8.5 (Berkeley) 4/28/95";
 #else
-__RCSID("$NetBSD: ftpd.c,v 1.107 2000/11/13 11:52:41 itojun Exp $");
+__RCSID("$NetBSD: ftpd.c,v 1.108 2000/11/13 15:11:57 itojun Exp $");
 #endif
 #endif /* not lint */
 
@@ -2404,7 +2404,7 @@
        p = NULL;
        (void)strtoul(result[2], &p, 10);
        if (!*result[2] || *p)
-               goto protounsupp;
+               goto parsefail;
        p = NULL;
        proto = strtoul(result[0], &p, 10);
        if (!*result[0] || *p)



Home | Main Index | Thread Index | Old Index