Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Improved error message when a received artifact has an incorrect hash. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
4c8e6d91d2dd8b3fd872a5a1d65ca89d |
User & Date: | drh 2016-01-18 22:34:55.905 |
Context
2016-01-18
| ||
23:13 | Add the test-erase-content command. ... (check-in: e709bf16 user: drh tags: trunk) | |
22:34 | Improved error message when a received artifact has an incorrect hash. ... (check-in: 4c8e6d91 user: drh tags: trunk) | |
17:48 | Improve some comments. ... (check-in: dda5d11d user: mistachkin tags: trunk) | |
Changes
Changes to src/xfer.c.
︙ | ︙ | |||
189 190 191 192 193 194 195 | blob_reset(&content); content = next; }else{ pXfer->nFileRcvd++; } sha1sum_blob(&content, &hash); if( !blob_eq_str(&pXfer->aToken[1], blob_str(&hash), -1) ){ | | > > | 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 | blob_reset(&content); content = next; }else{ pXfer->nFileRcvd++; } sha1sum_blob(&content, &hash); if( !blob_eq_str(&pXfer->aToken[1], blob_str(&hash), -1) ){ blob_appendf(&pXfer->err, "wrong hash on received artifact: expected %s but got %s", blob_str(&pXfer->aToken[1]), blob_str(&hash)); } rid = content_put_ex(&content, blob_str(&hash), 0, 0, isPriv); Th_AppendToList(pzUuidList, pnUuidList, blob_str(&hash), blob_size(&hash)); blob_reset(&hash); if( rid==0 ){ blob_appendf(&pXfer->err, "%s", g.zErrMsg); blob_reset(&content); |
︙ | ︙ |