]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/extra/m_ssl_gnutls.cpp
Giving printf formats and not giving it arguments for them != cunning
[user/henk/code/inspircd.git] / src / modules / extra / m_ssl_gnutls.cpp
index 9aec909c4d510ad8b1927f9a9d2be07203fbc503..b7da4d3db92b7d7093d84a1a44a69ac6172e12ad 100644 (file)
@@ -254,7 +254,8 @@ class ModuleSSLGnuTLS : public Module
                 * Old: gnutls_transport_set_ptr(session->sess, (gnutls_transport_ptr_t) fd); // Give gnutls the fd for the socket.
                 */
                
-               gnutls_transport_set_ptr(session->sess, &fd); // Give gnutls the fd for the socket.
+               gnutls_transport_set_ptr(session->sess, (gnutls_transport_ptr_t) fd); // Give gnutls the fd for the socket.
+               // gnutls_transport_set_ptr(session->sess, &fd); // Give gnutls the fd for the socket.
                
                Handshake(session);
        }
@@ -363,7 +364,7 @@ class ModuleSSLGnuTLS : public Module
                                        readresult = length;
                                }
                        
-                               log(DEBUG, "m_ssl_gnutls.so: OnRawSocketRead: Passing %d bytes up to insp:");
+                               log(DEBUG, "m_ssl_gnutls.so: OnRawSocketRead: Passing %d bytes up to insp:", length);
                                Srv->Log(DEBUG, std::string(buffer, readresult));
                        }
                }