* client_read_sslblob(): don't leave CC->Pos on an invalid position
[citadel.git] / citadel / modules / crypto / serv_crypto.c
index f323be662c65c0150ec5ef9744095b581f140a1f..5ba6ffc5684711e2cef3616322604aae42241154 100644 (file)
@@ -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) 
        {