mirror of
https://git.proxmox.com/git/libgit2
synced 2026-01-04 03:14:41 +00:00
netops: don't try to free addrinfo on DNS error
Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
This commit is contained in:
parent
b76f752279
commit
24384700d2
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user