Alexander V. Lukyanov
Thu, 03 Jan 2008 01:39:40 -0800
On Wed, Jan 02, 2008 at 10:20:36AM +0100, R. Wajda wrote: > empty target in a link causes lftp to generate coredump.
Here is my patch. -- Alexander.
Index: HttpDir.cc
===================================================================
RCS file: /home/lav/cvsroot/lftp/src/HttpDir.cc,v
retrieving revision 1.102
diff -u -p -r1.102 HttpDir.cc
--- HttpDir.cc 28 Dec 2007 10:23:10 -0000 1.102
+++ HttpDir.cc 3 Jan 2008 09:29:09 -0000
@@ -70,6 +70,8 @@ static bool find_value(const char *scan,
if(*scan=='"' || *scan=='\'')
quote=*scan++;
+ if(match)
+ store.set("");
while(scan<more && (quote ? *scan!=quote : !is_ascii_space(*scan)))
{
if(match)