summaryrefslogtreecommitdiff
path: root/src/netops.c
diff options
context:
space:
mode:
authorCarlos Martín Nieto <carlos@cmartin.tk>2011-09-06 21:44:13 +0200
committerCarlos Martín Nieto <carlos@cmartin.tk>2011-09-09 13:12:11 +0200
commit24384700d2105bf37b705c6b8e85626b60a28f10 (patch)
treeb44ebf35ae6c1562b30a1a6db182d76db4e7af7f /src/netops.c
parentb76f7522790992f0c54a1d68c761cb1fdba24412 (diff)
downloadlibgit2-24384700d2105bf37b705c6b8e85626b60a28f10.tar.gz
netops: don't try to free addrinfo on DNS error
Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
Diffstat (limited to 'src/netops.c')
-rw-r--r--src/netops.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/netops.c b/src/netops.c
index dadc2bc00..3e6b93552 100644
--- a/src/netops.c
+++ b/src/netops.c
@@ -102,6 +102,7 @@ int gitno_connect(const char *host, const char *port)
ret = getaddrinfo(host, port, &hints, &info);
if (ret != 0) {
error = GIT_EOSERR;
+ info = NULL;
goto cleanup;
}