summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/modules/extra/m_ssl_gnutls.cpp2
-rw-r--r--src/modules/extra/m_ssl_openssl.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/extra/m_ssl_gnutls.cpp b/src/modules/extra/m_ssl_gnutls.cpp
index 1b9139867..2939f4757 100644
--- a/src/modules/extra/m_ssl_gnutls.cpp
+++ b/src/modules/extra/m_ssl_gnutls.cpp
@@ -166,7 +166,7 @@ class ModuleSSLGnuTLS : public Module
int portint = 0;
irc::sockets::sockaddrs bin;
if (irc::sockets::aptosa(addr.c_str(), portint, &bin))
- irc::sockets::satoap(addr, portint, &bin);
+ irc::sockets::satoap(&bin, addr, portint);
}
irc::portparser portrange(port, false);
diff --git a/src/modules/extra/m_ssl_openssl.cpp b/src/modules/extra/m_ssl_openssl.cpp
index b9e23ba0b..53e873641 100644
--- a/src/modules/extra/m_ssl_openssl.cpp
+++ b/src/modules/extra/m_ssl_openssl.cpp
@@ -188,7 +188,7 @@ class ModuleSSLOpenSSL : public Module
int portint = 0;
irc::sockets::sockaddrs bin;
if (irc::sockets::aptosa(addr.c_str(), portint, &bin))
- irc::sockets::satoap(addr, portint, &bin);
+ irc::sockets::satoap(&bin, addr, portint);
}
irc::portparser portrange(port, false);