Fossil SCM

Fix a potential segfault when the SSH_CONNECTION environment variable is defined.

drh 2014-04-19 22:47 trunk
Commit a138dc97fcde6d323e4c3dbf31f3aef2e386cd47
1 file changed +1
+1
--- src/main.c
+++ src/main.c
@@ -1842,10 +1842,11 @@
18421842
18431843
/*
18441844
** Process all requests in a single SSH connection if possible.
18451845
*/
18461846
void ssh_request_loop(const char *zIpAddr, Glob *FileGlob){
1847
+ blob_zero(&g.cgiIn);
18471848
do{
18481849
cgi_handle_ssh_http_request(zIpAddr);
18491850
process_one_web_page(0, FileGlob);
18501851
blob_reset(&g.cgiIn);
18511852
} while ( g.fSshClient & CGI_SSH_FOSSIL ||
18521853
--- src/main.c
+++ src/main.c
@@ -1842,10 +1842,11 @@
1842
1843 /*
1844 ** Process all requests in a single SSH connection if possible.
1845 */
1846 void ssh_request_loop(const char *zIpAddr, Glob *FileGlob){
 
1847 do{
1848 cgi_handle_ssh_http_request(zIpAddr);
1849 process_one_web_page(0, FileGlob);
1850 blob_reset(&g.cgiIn);
1851 } while ( g.fSshClient & CGI_SSH_FOSSIL ||
1852
--- src/main.c
+++ src/main.c
@@ -1842,10 +1842,11 @@
1842
1843 /*
1844 ** Process all requests in a single SSH connection if possible.
1845 */
1846 void ssh_request_loop(const char *zIpAddr, Glob *FileGlob){
1847 blob_zero(&g.cgiIn);
1848 do{
1849 cgi_handle_ssh_http_request(zIpAddr);
1850 process_one_web_page(0, FileGlob);
1851 blob_reset(&g.cgiIn);
1852 } while ( g.fSshClient & CGI_SSH_FOSSIL ||
1853

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button