mirror of
https://git.proxmox.com/git/libgit2
synced 2026-01-04 13:37:18 +00:00
transport: prevent the transport determination mechanism from segfaulting when being passed an url starting with an unknown prefix
This commit is contained in:
parent
fdc8a7dbea
commit
86360ffdf7
@ -23,7 +23,7 @@ static struct {
|
||||
{NULL, 0}
|
||||
};
|
||||
|
||||
#define GIT_TRANSPORT_COUNT (sizeof(transports)/sizeof(transports[0]))
|
||||
#define GIT_TRANSPORT_COUNT (sizeof(transports)/sizeof(transports[0])) - 1
|
||||
|
||||
static git_transport_cb transport_find_fn(const char *url)
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user