mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-29 06:20:56 +00:00
Added GITERR_CHECK_ALLOC
This commit is contained in:
parent
a6b79b9bdc
commit
84ac625ddd
@ -336,6 +336,7 @@ static int _git_ssh_setup_conn(
|
||||
if (git_ssh_extract_url_parts(&host, &user, url) < 0)
|
||||
goto on_error;
|
||||
port = git__strdup(default_port);
|
||||
GITERR_CHECK_ALLOC(port);
|
||||
}
|
||||
|
||||
if (gitno_connect(&s->socket, host, port, 0) < 0)
|
||||
|
Loading…
Reference in New Issue
Block a user