diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2005-01-19 20:59:00 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2005-01-19 20:59:00 +0000 |
commit | 702b4b2bcc77a672a5f1d8d596e5b7a266c9c6f1 (patch) | |
tree | 54f65998ebb99a027d7af70af0a4b5f53b8e1d94 | |
parent | cd7131e362a17b913b5dac6bde0daac573088d4b (diff) |
Fix -S flag for non-root; from Ewen McNeill (closes PR 4066)
OK dhartmei@ and hshoexer@
-rw-r--r-- | libexec/ftp-proxy/ftp-proxy.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libexec/ftp-proxy/ftp-proxy.c b/libexec/ftp-proxy/ftp-proxy.c index 2a9913f9235..f619e14d515 100644 --- a/libexec/ftp-proxy/ftp-proxy.c +++ b/libexec/ftp-proxy/ftp-proxy.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ftp-proxy.c,v 1.38 2004/11/19 00:47:23 jmc Exp $ */ +/* $OpenBSD: ftp-proxy.c,v 1.39 2005/01/19 20:58:59 millert Exp $ */ /* * Copyright (c) 1996-2001 @@ -541,7 +541,7 @@ connect_port_backchannel(void) * getting one bound to port 20 - This is deliberately * not RFC compliant. */ - bzero(&listen_sa.sin_addr, sizeof(struct in_addr)); + bcopy(&src_addr, &listen_sa.sin_addr, sizeof(struct in_addr)); client_data_socket = get_backchannel_socket(SOCK_STREAM, min_port, max_port, -1, 1, &listen_sa); if (client_data_socket < 0) { |