Commit b54ed3ef by Brad Morgan

Added error check

parent 22011b33
......@@ -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,
......
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