From 4ad864462043c61d19861e4b7cacf6610ae9ce7f Mon Sep 17 00:00:00 2001 From: Judd Vinet Date: Thu, 29 Apr 2004 19:43:18 +0000 Subject: Imported from pacman-2.7.8.tar.gz --- libftp/ftplib.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'libftp/ftplib.c') 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); + } } -- cgit v1.2.3-24-g4f1b