line |
true |
false |
branch |
53
|
0 |
0 |
if (s == INVALID_SOCKET) |
101
|
0 |
0 |
if ((ret = p_getaddrinfo(st->host, st->port, &hints, &info)) != 0) { |
107
|
0 |
0 |
for (p = info; p != NULL; p = p->ai_next) { |
110
|
0 |
0 |
if (s == INVALID_SOCKET) |
113
|
0 |
0 |
if (connect(s, p->ai_addr, (socklen_t)p->ai_addrlen) == 0) |
122
|
0 |
0 |
if (s == INVALID_SOCKET && p == NULL) { |
|
0 |
0 |
if (s == INVALID_SOCKET && p == NULL) { |
140
|
0 |
0 |
if ((written = p_send(st->s, data, len, flags)) < 0) { |
153
|
0 |
0 |
if ((ret = p_recv(st->s, data, len, 0)) < 0) |
186
|
0 |
0 |
GIT_ASSERT_ARG(out); |
187
|
0 |
0 |
GIT_ASSERT_ARG(host); |
188
|
0 |
0 |
GIT_ASSERT_ARG(port); |
191
|
0 |
0 |
GIT_ERROR_CHECK_ALLOC(st); |
194
|
0 |
0 |
GIT_ERROR_CHECK_ALLOC(st->host); |
196
|
0 |
0 |
if (port) { |
198
|
0 |
0 |
GIT_ERROR_CHECK_ALLOC(st->port); |
222
|
0 |
0 |
GIT_ASSERT_ARG(out); |
223
|
0 |
0 |
GIT_ASSERT_ARG(host); |
224
|
0 |
0 |
GIT_ASSERT_ARG(port); |
226
|
0 |
0 |
if ((error = git_stream_registry_lookup(&custom, GIT_STREAM_STANDARD)) == 0) |
228
|
0 |
0 |
else if (error == GIT_ENOTFOUND) |
233
|
0 |
0 |
if (!init) { |