From 351f6a671c242d2af01d6acecd7057e867a867bc Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Wed, 17 Oct 2018 15:33:42 +0300 Subject: Fix ::bind() vs std::bind() confusion --- openssl/agent/pkcs11/agent.cxx | 8 +++++--- 1 file 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 (&addr), - sizeof (addr)) == -1) + // Not to confuse with std::bind(). + // + if (::bind (sock.get (), + reinterpret_cast (&addr), + sizeof (addr)) == -1) throw_system_error (errno); auto_rmfile rm (sock_path); -- cgit v1.1