summaryrefslogtreecommitdiff
path: root/usr.bin/ftp
diff options
context:
space:
mode:
authorAlexander Hall <halex@cvs.openbsd.org>2009-06-29 09:58:41 +0000
committerAlexander Hall <halex@cvs.openbsd.org>2009-06-29 09:58:41 +0000
commit19c7ae8963bd22aaac04bab39af5f3b256724a6f (patch)
tree59ed740e9273b001737daff2d73ca302c57105c8 /usr.bin/ftp
parenta3bdfc77dd3683500dd9b0f722e6683a8482454f (diff)
Fix the range of a #ifndef SMALL ... #endif not to include the "break;"
needed not to make a status of 200 (OK) fall through to the redirect handling. This was not noticed since the later code would ignore the isredirect flag unless it also received a "Location: " header. ok martynas@
Diffstat (limited to 'usr.bin/ftp')
-rw-r--r--usr.bin/ftp/fetch.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ftp/fetch.c b/usr.bin/ftp/fetch.c
index d6c3c69a26f..2517b967209 100644
--- a/usr.bin/ftp/fetch.c
+++ b/usr.bin/ftp/fetch.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fetch.c,v 1.90 2009/06/13 20:01:10 martynas Exp $ */
+/* $OpenBSD: fetch.c,v 1.91 2009/06/29 09:58:40 halex Exp $ */
/* $NetBSD: fetch.c,v 1.14 1997/08/18 10:20:20 lukem Exp $ */
/*-
@@ -583,8 +583,8 @@ again:
case 200: /* OK */
#ifndef SMALL
case 206: /* Partial Content */
- break;
#endif /* !SMALL */
+ break;
case 301: /* Moved Permanently */
case 302: /* Found */
case 303: /* See Other */