From 702b4b2bcc77a672a5f1d8d596e5b7a266c9c6f1 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Wed, 19 Jan 2005 20:59:00 +0000 Subject: Fix -S flag for non-root; from Ewen McNeill (closes PR 4066) OK dhartmei@ and hshoexer@ --- libexec/ftp-proxy/ftp-proxy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libexec/ftp-proxy') 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) { -- cgit v1.2.3