diff options
Diffstat (limited to 'libftp/ftplib.c')
-rw-r--r-- | libftp/ftplib.c | 6 |
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); + } } |