Overview
SHA1 Hash: | 869534e1823475cfa195479e72cdd3753f9a9b59 |
---|---|
Date: | 2007-08-09 03:44:31 |
User: | drh |
Comment: | Fix a bug in the xfer server that prevents it from receiving deltas. |
Timelines: | ancestors | descendants | both | trunk |
Other Links: | files | ZIP archive | manifest |
Tags And Properties
- branch=trunk inherited from [a28c83647d]
- sym-trunk inherited from [a28c83647d]
Changes
[hide diffs]Modified src/xfer.c from [338dc3ed99] to [dc10588abf].
@@ -188,10 +188,13 @@ blob_append(pOut, blob_buffer(&delta), size); }else{ cgi_printf("file %b %b %d\n", &uuid, &srcuuid, size); cgi_append_content(blob_buffer(&delta), size); } + blob_reset(&delta); + blob_reset(&srcuuid); + blob_reset(&uuid); }else{ size = blob_size(&content); if( pOut ){ blob_appendf(pOut, "file %b %d\n", &uuid, size); blob_append(pOut, blob_buffer(&content), size); @@ -339,11 +342,11 @@ /* file UUID SIZE \n CONTENT ** file UUID DELTASRC SIZE \n CONTENT ** ** Accept a file from the client. */ - if( blob_eq(&aToken[0], "file") && nToken>=2 && nToken<=3 ){ + if( blob_eq(&aToken[0], "file") && nToken>=3 && nToken<=4 ){ if( !isPush ){ cgi_reset_content(); @ error not\sauthorized\sto\swrite nErr++; break;