]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
fix typo in dccp_writer
authorAndre Noll <maan@systemlinux.org>
Mon, 19 Feb 2007 21:24:17 +0000 (22:24 +0100)
committerAndre Noll <maan@systemlinux.org>
Mon, 19 Feb 2007 21:24:17 +0000 (22:24 +0100)
Again, a serious typo that causes the dccp writer to not error
out under certain circumstances.

dccp_send.c

index c335e768a0b66182d171188e757d6475acb055cd..e4b508799f8bafe0b8d09aeed03fb9c80841441e 100644 (file)
@@ -131,7 +131,7 @@ again:
        size = PARA_MIN(1024, len - written);
        ret = write(fd, buf + written, size);
        if (ret < 0) {
        size = PARA_MIN(1024, len - written);
        ret = write(fd, buf + written, size);
        if (ret < 0) {
-               if (errno != EAGAIN || !retries++ > DCCP_WRITE_RETRIES)
+               if (errno != EAGAIN || retries++ > DCCP_WRITE_RETRIES)
                        goto err_out;
                PARA_DEBUG_LOG("EAGAIN #%d@%zd/%zd\n", retries, written, len);
                goto again;
                        goto err_out;
                PARA_DEBUG_LOG("EAGAIN #%d@%zd/%zd\n", retries, written, len);
                goto again;