From 5a971472d49afd4a6b5e24df5cb5839beb299830 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Mon, 19 Feb 2007 22:24:17 +0100 Subject: [PATCH] fix typo in dccp_writer Again, a serious typo that causes the dccp writer to not error out under certain circumstances. --- dccp_send.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dccp_send.c b/dccp_send.c index c335e768..e4b50879 100644 --- a/dccp_send.c +++ b/dccp_send.c @@ -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; -- 2.39.5