Commit Diff


commit - 1f1613cf295163e120025e06b138cda25d5e52f1
commit + 8b56c8f497bb215c0e3504455ac22a3f25646a5b
blob - a3bb6f2f4edf03609cd6c5a364d94d6dd8d7a756
blob + 6ba42b7276fc11f577bae03feed218bb23e495e6
--- lib/serve.c
+++ lib/serve.c
@@ -1373,7 +1373,7 @@ serve_write(int infd, int outfd, int gotd_sock, const 
 		buf[0] = '\0';
 		err = got_pkt_readpkt(&n, infd, buf, sizeof(buf), chattygot);
 		if (err)
-			break;
+			goto done;
 		if (n == 0) {
 			if (curstate != STATE_EXPECT_MORE_REF_UPDATES) {
 				err = got_error_msg(GOT_ERR_BAD_PACKET,