Commit Diff


commit - 85e8b713600158c7322d8e893c29fdc1fb7c6a64
commit + b18b22548b5f83b9ec2eaf63b161fa5f76febdbc
blob - 89220d16dadb171f6bf179e5fa2d7118b94a4aad
blob + 7cb4b4aa6c9a239aeb25328ef01b302f2131753a
--- gotwebd/gotweb.c
+++ gotwebd/gotweb.c
@@ -1020,7 +1020,7 @@ gotweb_render_index(struct request *c)
 		if (asprintf(&c_path, "%s/%s", srv->repos_path,
 		    sd_dent[d_i]->d_name) == -1) {
 			error = got_error_from_errno("asprintf");
-			return error;
+			goto done;
 		}
 
 		if (lstat(c_path, &st) == 0 && S_ISDIR(st.st_mode) &&