libgit2/libgit2 — pull request #2582 by swansontec (2014-09-24 19:12:09+00:00)
Title: Correctly handle getaddrinfo return result

The getaddrinfo function indicates failure with a non-zero return code,
but this code is not necessarily negative. On platforms like Android
where the code is positive, a failed call causes libgit2 to segfault.