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 c335e76..e4b5087 100644 (file)
@@ -131,7 +131,7 @@ again:
        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;