From: Fabian Keil Date: Tue, 4 Sep 2007 15:08:48 +0000 (+0000) Subject: Initialize req to NULL to make sure it's defined if the X-Git-Tag: v_3_0_7~156 X-Git-Url: http://www.privoxy.org/gitweb/filter-file.html?a=commitdiff_plain;h=7d227cd54bce48731ffdb5dac70139c1bff872df;p=privoxy.git Initialize req to NULL to make sure it's defined if the first read_socket() call fails. Reported by icmp30. --- diff --git a/jcc.c b/jcc.c index a4e430ef..d17c0fb7 100644 --- a/jcc.c +++ b/jcc.c @@ -1,4 +1,4 @@ -const char jcc_rcs[] = "$Id: jcc.c,v 1.147 2007/08/25 14:42:40 fabiankeil Exp $"; +const char jcc_rcs[] = "$Id: jcc.c,v 1.148 2007/08/26 16:47:13 fabiankeil Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/jcc.c,v $ @@ -33,6 +33,10 @@ const char jcc_rcs[] = "$Id: jcc.c,v 1.147 2007/08/25 14:42:40 fabiankeil Exp $" * * Revisions : * $Log: jcc.c,v $ + * Revision 1.148 2007/08/26 16:47:13 fabiankeil + * Add Stephen Gildea's --pre-chroot-nslookup patch [#1276666], + * extensive comments moved to user manual. + * * Revision 1.147 2007/08/25 14:42:40 fabiankeil * Don't crash if a broken header filter wiped out the request line. * @@ -1912,7 +1916,7 @@ static void chat(struct client_state *csp) char buf[BUFFER_SIZE]; char *hdr; char *p; - char *req; + char *req = NULL; fd_set rfds; int n; jb_socket maxfd;