From 8185148311e4ad8389dd7e79e2c2b5fc6f49805d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Wilfried=20G=C3=B6esgens?= Date: Wed, 17 Mar 2010 19:14:29 +0000 Subject: [PATCH] * client_read_sslblob(): don't leave CC->Pos on an invalid position --- citadel/modules/crypto/serv_crypto.c | 1 + 1 file changed, 1 insertion(+) diff --git a/citadel/modules/crypto/serv_crypto.c b/citadel/modules/crypto/serv_crypto.c index f323be662..5ba6ffc56 100644 --- a/citadel/modules/crypto/serv_crypto.c +++ b/citadel/modules/crypto/serv_crypto.c @@ -539,6 +539,7 @@ int client_read_sslblob(StrBuf *Target, long bytes, int timeout) bufremain = bytes; StrBufAppendBufPlain(Target, CCC->Pos, bufremain, 0); StrBufCutLeft(CCC->ReadBuf, bufremain); + CCC->Pos = NULL; if (bytes > bufremain) { -- 2.30.2