summaryrefslogtreecommitdiff
blob: 601188e367ff9523f64d6cc8dae6e007a0f4e80f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- oftpd-0.3.7.orig/src/ftp_session.c	2004-03-25 20:46:40.000000000 +0000
+++ oftpd-0.3.7/src/ftp_session.c	2006-12-27 11:38:56.219883456 +0000
@@ -683,10 +683,12 @@ static void do_lprt(ftp_session_t *f, co
 #ifdef INET6
     if ((SSFAM(host_port) != AF_INET) && (SSFAM(host_port) != AF_INET6)) {
         reply(f, 521, "Only IPv4 and IPv6 supported, address families (4,6)");
+        return;
     }
 #else
     if (SSFAM(host_port) != AF_INET) {
         reply(f, 521, "Only IPv4 supported, address family (4)");
+        return;
     }
 #endif