aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2018-10-17 12:33:42 (GMT)
committerKaren Arutyunov <karen@codesynthesis.com>2018-10-17 12:33:42 (GMT)
commit351f6a671c242d2af01d6acecd7057e867a867bc (patch)
tree24577d6ccc59541126684ea93759ab3568111bf3
parent09831cde194ffab1ec6e34158a3b508e6d1013b0 (diff)
Fix ::bind() vs std::bind() confusion
-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);