Fix openssl.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7648 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
peavey 2007-08-04 02:57:53 +00:00
parent 81e793231d
commit 2feb4f5ad4

View File

@ -509,7 +509,7 @@ class ModuleSSLOpenSSL : public Module
if (ret > 0)
{
if (count <= session->inbufoffset)
if (count > session->inbufoffset)
{
memcpy(buffer, session->inbuf, count);
// Move the stuff left in inbuf to the beginning of it