summaryrefslogtreecommitdiff
path: root/sha1collisiondetection
diff options
context:
space:
mode:
authorLibravatar Jeff King <peff@peff.net>2018-11-22 12:31:09 -0500
committerLibravatar Junio C Hamano <gitster@pobox.com>2019-01-11 18:35:53 -0800
commit54e8c1121574fca675438ac0bbd7f6a375b92520 (patch)
treed238f873bb98bce797b2950105d9cae82a39ed2b /sha1collisiondetection
parentGit 2.19.2 (diff)
downloadtgif-54e8c1121574fca675438ac0bbd7f6a375b92520.tar.xz
remote: check config validity before creating rewrite struct
When parsing url.foo.insteadOf, we call make_rewrite() and only then check to make sure the config value is a string (and return an error if it isn't). This isn't quite a leak, because the struct we allocate is part of a global array, but it does leave a funny half-finished struct. In practice, it doesn't make much difference because we exit soon after due to the config error anyway. But let's flip the order here to avoid leaving a trap for somebody in the future. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'sha1collisiondetection')
0 files changed, 0 insertions, 0 deletions