Fix segfault of loadGeneralFile()
Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=718612
This commit is contained in:
@@ -2267,10 +2267,11 @@ loadGeneralFile(char *path, ParsedURL *volatile current, char *referer,
|
|||||||
if (header_string)
|
if (header_string)
|
||||||
header_string = NULL;
|
header_string = NULL;
|
||||||
#ifdef USE_NNTP
|
#ifdef USE_NNTP
|
||||||
if (f.scheme == SCM_NNTP || f.scheme == SCM_NEWS)
|
if (b && b != NO_BUFFER && (f.scheme == SCM_NNTP || f.scheme == SCM_NEWS))
|
||||||
reAnchorNewsheader(b);
|
reAnchorNewsheader(b);
|
||||||
#endif
|
#endif
|
||||||
preFormUpdateBuffer(b);
|
if (b && b != NO_BUFFER)
|
||||||
|
preFormUpdateBuffer(b);
|
||||||
TRAP_OFF;
|
TRAP_OFF;
|
||||||
return b;
|
return b;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user