diff --git a/lib/transfer.c b/lib/transfer.c
index a47fa1c579ec8ed996b67b9f48f02ab2e400a110..582fbc9fe1b68bf67c4f617ced13d2085730e80c 100644
--- a/lib/transfer.c
+++ b/lib/transfer.c
@@ -437,8 +437,10 @@ CURLcode Curl_readwrite(struct connectdata *conn,
                  * NOT contain a message-body, and thus is always terminated
                  * by the first empty line after the header fields.  */
                 conn->size=0;
+                break;
               default:
                 /* nothing */
+                break;
               }
             }
             else {