diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2018-10-17 15:33:42 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2018-10-17 15:33:42 +0300 |
commit | 351f6a671c242d2af01d6acecd7057e867a867bc (patch) | |
tree | 24577d6ccc59541126684ea93759ab3568111bf3 /openssl/agent | |
parent | 09831cde194ffab1ec6e34158a3b508e6d1013b0 (diff) |
Fix ::bind() vs std::bind() confusion
Diffstat (limited to 'openssl/agent')
-rw-r--r-- | openssl/agent/pkcs11/agent.cxx | 8 |
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); |