Commit 24384700 by Carlos Martín Nieto

netops: don't try to free addrinfo on DNS error

Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
parent b76f7522
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment