X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fmodules%2Fcrypto%2Fserv_crypto.c;h=5ba6ffc5684711e2cef3616322604aae42241154;hb=8185148311e4ad8389dd7e79e2c2b5fc6f49805d;hp=f323be662c65c0150ec5ef9744095b581f140a1f;hpb=092474d939f67b93273aa0d28fba40e5aeef4b91;p=citadel.git 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) {