Commit Diff
--- gotd/repo_write.c +++ gotd/repo_write.c @@ -1392,6 +1392,8 @@ verify_packfile(void) return got_error_from_errno("pack index fstat"); packidx = malloc(sizeof(*packidx)); + if (packidx == NULL) + return got_error_from_errno("malloc"); memset(packidx, 0, sizeof(*packidx)); packidx->fd = client->packidx_fd; client->packidx_fd = -1;