Commit e17984a09be8df91edac0a44b56c088560951d24

Tracey Emery 2022-06-15T15:33:46

clear gw_trans->pack_fds pointer in gotweb

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/gotweb/gotweb.c b/gotweb/gotweb.c
index 5cabaf1..e1fc7e7 100644
--- a/gotweb/gotweb.c
+++ b/gotweb/gotweb.c
@@ -4889,6 +4889,7 @@ cleanup:
 		    got_repo_pack_fds_close(gw_trans->pack_fds);
 		if (error == NULL)
 			error = pack_err;
+		gw_trans->pack_fds = NULL;
 	}
 	free(gw_trans->gw_conf->got_repos_path);
 	free(gw_trans->gw_conf->got_www_path);