summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2020-02-19 18:39:43 +0100
committerSlávek Banko <slavek.banko@axis.cz>2020-02-19 18:39:43 +0100
commit757a71ff3b70b1871b89a827cb11dc9ba398e0bf (patch)
treef29dddfb338ae7e812abc01439950fa900965ef3
parent28e2c3f3522402adc95329a71c3ce4c557342059 (diff)
downloadkasablanca-757a71ff3b70b1871b89a827cb11dc9ba398e0bf.tar.gz
kasablanca-757a71ff3b70b1871b89a827cb11dc9ba398e0bf.zip
Ensure the use of the bind function for the socket.
This resolves FTBFS on FreeBSD. Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
-rw-r--r--src/ftplib.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ftplib.cpp b/src/ftplib.cpp
index fb53364..94012ba 100644
--- a/src/ftplib.cpp
+++ b/src/ftplib.cpp
@@ -695,7 +695,7 @@ int ftplib::FtpOpenPort(netbuf *nControl, netbuf **nData, int mode, int dir, cha
}
sin.in.sin_port = 0;
- if (bind(sData, &sin.sa, sizeof(sin)) == -1)
+ if (::bind(sData, &sin.sa, sizeof(sin)) == -1)
{
perror("bind");
close(sData);