summaryrefslogtreecommitdiff
path: root/src/commit.c
diff options
context:
space:
mode:
authorScott J. Goldman <scottjgo@gmail.com>2012-05-05 13:30:33 -0700
committerScott J. Goldman <scottjgo@gmail.com>2012-05-05 13:33:46 -0700
commitb4b96d56bf1d9f362441e5e650b023040a319e05 (patch)
treeabf206b51008b047ed5552ebde11831309fc3cec /src/commit.c
parent06ac3e7f345d8ab257f77bf567d671c0b65c378c (diff)
downloadlibgit2-b4b96d56bf1d9f362441e5e650b023040a319e05.tar.gz
Fix gitno_connect() error handling on Windows
gitno_connect() can return an error or socket, which is fine on most platforms where sockets are file descriptors (signed int), but on Windows, SOCKET is an unsigned type, which is problematic when we are trying to test if the socket was actually a negative error code. This fix seperates the error code and socket in gitno_connect(), and fixes the error handling in do_connect() functions to compensate. It appears that git_connect() and the git-transport do_connect() functions had bugs in the non-windows cases too (leaking sockets, and not properly reporting connection error, respectively) so I went ahead and fixed those too.
Diffstat (limited to 'src/commit.c')
0 files changed, 0 insertions, 0 deletions