summaryrefslogtreecommitdiffstats
path: root/usr.bin/ftp/fetch.c
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2000-09-25 11:38:28 +0000
committerru <ru@FreeBSD.org>2000-09-25 11:38:28 +0000
commit061b585fd081d6c4dcb90b4b70a9b611028f58be (patch)
tree6f6ed2de637606da06592ad75ea7a45705fc14bb /usr.bin/ftp/fetch.c
parentee7b6df7c62957ae4213109864a9066f88dd481e (diff)
downloadFreeBSD-src-061b585fd081d6c4dcb90b4b70a9b611028f58be.zip
FreeBSD-src-061b585fd081d6c4dcb90b4b70a9b611028f58be.tar.gz
Do not call freeaddrinfo(res0) twice.
PR: bin/21476
Diffstat (limited to 'usr.bin/ftp/fetch.c')
-rw-r--r--usr.bin/ftp/fetch.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.bin/ftp/fetch.c b/usr.bin/ftp/fetch.c
index ae5a2fa..2fc48ee 100644
--- a/usr.bin/ftp/fetch.c
+++ b/usr.bin/ftp/fetch.c
@@ -270,6 +270,7 @@ url_get(origline, proxyenv)
break;
}
freeaddrinfo(res0);
+ res0 = NULL;
/*
* Construct and send the request. We're expecting a return
OpenPOWER on IntegriCloud