commit | 65a1ee956f0721ad3cebf79c0a6b3266a0676524 | [log] [tgz] |
---|---|---|
author | Daniel Fandrich <dan@coneharvesters.com> | Wed Nov 23 12:07:31 2011 +0100 |
committer | Denys Vlasenko <vda.linux@googlemail.com> | Wed Nov 23 12:07:31 2011 +0100 |
tree | 4078143c5d2c373f77abe7983722c7cecb16e07a | |
parent | d2277e262ff7dd2dd946ea16b93462f3dcdf0447 [diff] |
rx: fix file corruption on block checksum failure Rather than dropping the bad block, rx was appending it to the file. Signed-off-by: Daniel Fandrich <dan@coneharvesters.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
diff --git a/miscutils/rx.c b/miscutils/rx.c index c48a61f..af59732 100644 --- a/miscutils/rx.c +++ b/miscutils/rx.c
@@ -207,6 +207,7 @@ continue; error: timeout: + blockLength = 0; errors++; if (errors == MAXERRORS) { /* Abort */