mirror of
https://git.proxmox.com/git/libgit2
synced 2026-01-26 09:07:21 +00:00
Added error check
This commit is contained in:
parent
22011b33da
commit
b54ed3efe8
@ -342,7 +342,8 @@ static int _git_ssh_setup_conn(
|
|||||||
goto on_error;
|
goto on_error;
|
||||||
|
|
||||||
if (user && pass) {
|
if (user && pass) {
|
||||||
git_cred_userpass_plaintext_new(&t->cred, user, pass);
|
if (git_cred_userpass_plaintext_new(&t->cred, user, pass) < 0)
|
||||||
|
goto on_error;
|
||||||
} else {
|
} else {
|
||||||
if (t->owner->cred_acquire_cb(&t->cred,
|
if (t->owner->cred_acquire_cb(&t->cred,
|
||||||
t->owner->url,
|
t->owner->url,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user