shithub: riscv

Download patch

ref: ab022ff67d0e3f2e479d4722303e26ea38172cf2
parent: 8943c2fb8accae733370a617e2a75f6630f651e9
author: cinap_lenrek <[email protected]>
date: Sun May 6 12:44:09 EDT 2012

ip/torrent: fix mistake

--- a/sys/src/cmd/ip/torrent.c
+++ b/sys/src/cmd/ip/torrent.c
@@ -618,9 +618,10 @@
 		}
 		ni = getnetconninfo(ldir, dfd);
 		peer(dfd, 1, ni ? ni->raddr : "???");
-		if(ni) freenetconninfo(ni);	
-		exits(0);
+		if(ni) freenetconninfo(ni);
+		break;	
 	}
+	exits(0);
 }
 
 void