mirror of
https://git.proxmox.com/git/libgit2
synced 2025-12-24 18:49:22 +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;
|
||||
|
||||
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 {
|
||||
if (t->owner->cred_acquire_cb(&t->cred,
|
||||
t->owner->url,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user