* client_read_sslblob(): don't leave CC->Pos on an invalid position
authorWilfried Göesgens <willi@citadel.org>
Wed, 17 Mar 2010 19:14:29 +0000 (19:14 +0000)
committerWilfried Göesgens <willi@citadel.org>
Wed, 17 Mar 2010 19:14:29 +0000 (19:14 +0000)
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) 
        {