summaryrefslogtreecommitdiff
path: root/src/thread-utils.c
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2014-09-04 16:46:14 +0200
committerCarlos Martín Nieto <cmn@dwim.me>2014-09-04 16:46:14 +0200
commit2dc399a81da0baec54da80ed90a0007fb8caed81 (patch)
tree4f98739622caa0d8fd64125c093141b9ff30e4ed /src/thread-utils.c
parent89e05e2ab19ac452e84e0eaa2dfb8e07ac6839bf (diff)
downloadlibgit2-cmn/ssh-errors.tar.gz
ssh: store error message immediately after a failed agent callcmn/ssh-errors
When the call to the agent fails, we must retrieve the error message just after the function call, as other calls may overwrite it. As the agent authentication is the only one which has a teardown and there does not seem to be a way to get the error message from a stored error number, this tries to introduce some small changes to store the error from the agent. Clearing the error at the beginning of the loop lets us know whether the agent has already set the libgit2 error message and we should skip it, or if we should set it.
Diffstat (limited to 'src/thread-utils.c')
0 files changed, 0 insertions, 0 deletions