Fossil

Check-in [a138dc97]
Login

Check-in [a138dc97]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix a potential segfault when the SSH_CONNECTION environment variable is defined.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: a138dc97fcde6d323e4c3dbf31f3aef2e386cd47
User & Date: drh 2014-04-19 22:47:49
References
2014-04-22
09:43
[a138dc97fc]: Fix a potential segfault when the SSH_CONNECTION environment variable is defined. 9d2ae6342c: In the command-line shell, run set writable_schema before running the ".clone" command. ... (check-in: d7889a2e user: jan.nijtmans tags: branch-1.28)
Context
2014-04-22
09:43
[a138dc97fc]: Fix a potential segfault when the SSH_CONNECTION environment variable is defined. 9d2ae6342c: In the command-line shell, run set writable_schema before running the ".clone" command. ... (check-in: d7889a2e user: jan.nijtmans tags: branch-1.28)
2014-04-20
08:40
Cherry-pick a few more bug-fixes from SQLite trunk, the same ones that are also backported to the SQLite 3.7.4.3 Cygwin build. See: http://osdir.com/ml/sqlite-users/2014-04/msg00366.html. For me those all are important enough so they should appear in the next SQLite release. ... (check-in: 1b2c7acd user: jan.nijtmans tags: trunk)
2014-04-19
22:47
Fix a potential segfault when the SSH_CONNECTION environment variable is defined. ... (check-in: a138dc97 user: drh tags: trunk)
2014-04-15
09:40
Cherry-pick 1277932b7e: Fix a harmless compiler warning that crops up with SQLITE_MAX_MMAP_SIZE=0. ... (check-in: 53aea235 user: jan.nijtmans tags: trunk)
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/main.c.

1840
1841
1842
1843
1844
1845
1846

1847
1848
1849
1850
1851
1852
1853
  process_one_web_page(zNotFound, glob_create(zFileGlob));
}

/*
** Process all requests in a single SSH connection if possible.
*/
void ssh_request_loop(const char *zIpAddr, Glob *FileGlob){

  do{
    cgi_handle_ssh_http_request(zIpAddr);
    process_one_web_page(0, FileGlob);
    blob_reset(&g.cgiIn);
  } while ( g.fSshClient & CGI_SSH_FOSSIL ||
          g.fSshClient & CGI_SSH_COMPAT );
}







>







1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
  process_one_web_page(zNotFound, glob_create(zFileGlob));
}

/*
** Process all requests in a single SSH connection if possible.
*/
void ssh_request_loop(const char *zIpAddr, Glob *FileGlob){
  blob_zero(&g.cgiIn);
  do{
    cgi_handle_ssh_http_request(zIpAddr);
    process_one_web_page(0, FileGlob);
    blob_reset(&g.cgiIn);
  } while ( g.fSshClient & CGI_SSH_FOSSIL ||
          g.fSshClient & CGI_SSH_COMPAT );
}