Fix segfault of loadGeneralFile()

Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=718612
This commit is contained in:
Tatsuya Kinoshita
2013-08-04 11:24:54 +09:00
parent b50a33cf9f
commit b7dde2bc4b
+3 -2
View File
@@ -2267,10 +2267,11 @@ loadGeneralFile(char *path, ParsedURL *volatile current, char *referer,
if (header_string)
header_string = NULL;
#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);
#endif
preFormUpdateBuffer(b);
if (b && b != NO_BUFFER)
preFormUpdateBuffer(b);
TRAP_OFF;
return b;
}