summaryrefslogtreecommitdiffstats
path: root/libftp/ftplib.c
diff options
context:
space:
mode:
authorJudd Vinet <judd@archlinux.org>2004-04-29 21:43:18 +0200
committerJudd Vinet <judd@archlinux.org>2004-04-29 21:43:18 +0200
commit4ad864462043c61d19861e4b7cacf6610ae9ce7f (patch)
tree9452939bf7d7b647e0d6c8b5876810f47fad2e4e /libftp/ftplib.c
parent4cb6a179b3b23fff7208628438d59783e9e65dfc (diff)
downloadpacman-4ad864462043c61d19861e4b7cacf6610ae9ce7f.tar.gz
pacman-4ad864462043c61d19861e4b7cacf6610ae9ce7f.tar.xz
Imported from pacman-2.7.8.tar.gz
Diffstat (limited to 'libftp/ftplib.c')
-rw-r--r--libftp/ftplib.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libftp/ftplib.c b/libftp/ftplib.c
index 68165100..1e299b5b 100644
--- a/libftp/ftplib.c
+++ b/libftp/ftplib.c
@@ -1562,6 +1562,8 @@ GLOBALREF int HttpGet(const char *host, const char *outputfile, const char *path
*/
GLOBALREF void HttpQuit(netbuf *nControl)
{
- net_close(nControl->handle);
- free(nControl);
+ if(nControl) {
+ net_close(nControl->handle);
+ free(nControl);
+ }
}