aboutsummaryrefslogtreecommitdiff
path: root/openssl
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2018-10-17 15:33:42 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2018-10-17 15:33:42 +0300
commit351f6a671c242d2af01d6acecd7057e867a867bc (patch)
tree24577d6ccc59541126684ea93759ab3568111bf3 /openssl
parent09831cde194ffab1ec6e34158a3b508e6d1013b0 (diff)
Fix ::bind() vs std::bind() confusion
Diffstat (limited to 'openssl')
-rw-r--r--openssl/agent/pkcs11/agent.cxx8
1 files changed, 5 insertions, 3 deletions
diff --git a/openssl/agent/pkcs11/agent.cxx b/openssl/agent/pkcs11/agent.cxx
index 12b273c..2a7af90 100644
--- a/openssl/agent/pkcs11/agent.cxx
+++ b/openssl/agent/pkcs11/agent.cxx
@@ -135,9 +135,11 @@ namespace openssl
// Creates the socket filesystem entry.
//
- if (bind (sock.get (),
- reinterpret_cast<sockaddr*> (&addr),
- sizeof (addr)) == -1)
+ // Not to confuse with std::bind().
+ //
+ if (::bind (sock.get (),
+ reinterpret_cast<sockaddr*> (&addr),
+ sizeof (addr)) == -1)
throw_system_error (errno);
auto_rmfile rm (sock_path);