Commit Diff


commit - a3f334437c3608015c16d7a39163232e59ea514f
commit + 2dd71cdd72c0c6c4ce607fdc73ae38fa898bfeb2
blob - 47405eecdb089c1597bbe2dc967b3c2de677e97a
blob + a64f34c13f0c0970d9dd30e16a0b454e48353d13
--- 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) &&