From: Daniel Stenberg Date: Tue, 7 Feb 2006 18:56:41 +0000 (+0000) Subject: avoid illegal memory access when doing "-T [URL] [URL]" X-Git-Tag: curl-7_15_2~30 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d7a83d8995c43371c48d2785e602c5f446b634ce;p=thirdparty%2Fcurl.git avoid illegal memory access when doing "-T [URL] [URL]" --- diff --git a/src/main.c b/src/main.c index 44471be40d..c6049242c1 100644 --- a/src/main.c +++ b/src/main.c @@ -4216,8 +4216,10 @@ show_error: } /* loop to the next globbed upload file */ - if(inglob) + if(inglob) { glob_cleanup(inglob); + inglob = NULL; + } if(outfiles) free(outfiles);