From: Wilfried Goesgens Date: Thu, 4 Nov 2010 19:28:27 +0000 (+0100) Subject: fix crash in SSL BLOB-Reading X-Git-Tag: v7.86~39 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=799d59665f42e95572f1870813203ccf3ec53273 fix crash in SSL BLOB-Reading - when diciding whether the read buffer contains more than the blob reader wants we had a wrong equation. --- diff --git a/citadel/modules/crypto/serv_crypto.c b/citadel/modules/crypto/serv_crypto.c index 30309f896..9decb6907 100644 --- a/citadel/modules/crypto/serv_crypto.c +++ b/citadel/modules/crypto/serv_crypto.c @@ -604,7 +604,7 @@ int client_read_sslblob(StrBuf *Target, long bytes, int timeout) retval = client_read_sslbuffer(CCC->ReadBuf, timeout); if (retval >= 0) { RemainRead = bytes - (StrLength (Target) - baselen); - if (RemainRead > StrLength(CCC->ReadBuf)) + if (RemainRead < StrLength(CCC->ReadBuf)) { StrBufAppendBufPlain( Target,