summaryrefslogtreecommitdiff
path: root/http-push.c
diff options
context:
space:
mode:
authorRené Scharfe <rene.scharfe@lsrfire.ath.cx>2012-06-12 18:46:56 (GMT)
committerJunio C Hamano <gitster@pobox.com>2012-06-13 20:10:55 (GMT)
commit7acf438215d1b0e8e47a707f3585de8486a2e5fe (patch)
treedd7b2535a9d3b4edae9a275558478f7ce76d7a49 /http-push.c
parent121f71f0da1bc9a4e1e96be2c3e683191a82a354 (diff)
downloadgit-7acf438215d1b0e8e47a707f3585de8486a2e5fe.zip
git-7acf438215d1b0e8e47a707f3585de8486a2e5fe.tar.gz
git-7acf438215d1b0e8e47a707f3585de8486a2e5fe.tar.bz2
git: Wrong parsing of ssh urls with IPv6 literals ignores port
If we encounter an address part shaped like "[HOST]:PORT", we skip the opening bracket and replace the closing one with a NUL. The variable host then points to HOST and we've cut off the PORT part. Thus, when we go looking for it using host a bit later, we can't find it. Start at end instead, which either points to the colon, if present, or is equal to host. Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx> Reviewed-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'http-push.c')
0 files changed, 0 insertions, 0 deletions