diff options
author | DongHun Kwak <dh0128.kwak@samsung.com> | 2021-03-03 15:14:59 +0900 |
---|---|---|
committer | DongHun Kwak <dh0128.kwak@samsung.com> | 2021-03-03 15:14:59 +0900 |
commit | 4f2ce038374e43e25df7a0cc79dd205cf9541814 (patch) | |
tree | a7ace95a298dcea304455fc03a1bd05316658c37 /connect.c | |
parent | 82784a5370b0993948b35ce3a699f8bb95422af2 (diff) | |
download | git-4f2ce038374e43e25df7a0cc79dd205cf9541814.tar.gz git-4f2ce038374e43e25df7a0cc79dd205cf9541814.tar.bz2 git-4f2ce038374e43e25df7a0cc79dd205cf9541814.zip |
Imported Upstream version 2.3.7upstream/2.3.7
Diffstat (limited to 'connect.c')
-rw-r--r-- | connect.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -310,6 +310,8 @@ static void get_host_and_port(char **host, const char **port) if (end != colon + 1 && *end == '\0' && 0 <= portnr && portnr < 65536) { *colon = 0; *port = colon + 1; + } else if (!colon[1]) { + *colon = 0; } } } |