diff options
author | 2005-01-19 20:58:59 +0000 | |
---|---|---|
committer | 2005-01-19 20:58:59 +0000 | |
commit | 51da40c870141d7438c25c8e37086625a349de9e (patch) | |
tree | db6424b9343c09c0e923744c258eca6df8574c57 /libexec/ftp-proxy/ftp-proxy.c | |
parent | Only try to run pflogd if pflog0 exists; from mpech@ (diff) | |
download | wireguard-openbsd-51da40c870141d7438c25c8e37086625a349de9e.tar.xz wireguard-openbsd-51da40c870141d7438c25c8e37086625a349de9e.zip |
Fix -S flag for non-root; from Ewen McNeill (closes PR 4066)
OK dhartmei@ and hshoexer@
Diffstat (limited to 'libexec/ftp-proxy/ftp-proxy.c')
-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) { |