Commit b54ed3ef by Brad Morgan

Added error check

parent 22011b33
...@@ -342,7 +342,8 @@ static int _git_ssh_setup_conn( ...@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment