Commit 7e1f0b222d581c5484622166b6f8041ee004cb17

Kim Altintop 2020-08-31T21:54:17

Return false instead of segfaulting when checking for default port `default_port_for_scheme` returns NULL if the scheme is not one of the builtin ones. This may cause a segmentation fault if a custom transport URL happens to contain a port number, and this code path is triggered (e.g. by setting git_fetch_options->update_fetchhead to 1).