Fossil SCM

Fix to the previous fix: install function to the correct database.

dmitry 2011-09-29 21:06 dmitry-security
Commit 3782276da6a9c5b2e7df4af41e183298b0e44d91
1 file changed +1 -1
+1 -1
--- src/login.c
+++ src/login.c
@@ -510,11 +510,11 @@
510510
if( zOtherRepo==0 ) return 0; /* No such peer repository */
511511
512512
rc = sqlite3_open(zOtherRepo, &pOther);
513513
if( rc==SQLITE_OK ){
514514
sqlite3_create_function(pOther,"now",0,SQLITE_ANY,0,db_now_function,0,0);
515
- sqlite3_create_function(g.db, "constant_time_eq", 2, SQLITE_UTF8, 0,
515
+ sqlite3_create_function(pOther, "constant_time_eq", 2, SQLITE_UTF8, 0,
516516
constant_time_eq_function, 0, 0);
517517
sqlite3_busy_timeout(pOther, 5000);
518518
zSQL = mprintf(
519519
"SELECT cexpire FROM user"
520520
" WHERE login=%Q"
521521
--- src/login.c
+++ src/login.c
@@ -510,11 +510,11 @@
510 if( zOtherRepo==0 ) return 0; /* No such peer repository */
511
512 rc = sqlite3_open(zOtherRepo, &pOther);
513 if( rc==SQLITE_OK ){
514 sqlite3_create_function(pOther,"now",0,SQLITE_ANY,0,db_now_function,0,0);
515 sqlite3_create_function(g.db, "constant_time_eq", 2, SQLITE_UTF8, 0,
516 constant_time_eq_function, 0, 0);
517 sqlite3_busy_timeout(pOther, 5000);
518 zSQL = mprintf(
519 "SELECT cexpire FROM user"
520 " WHERE login=%Q"
521
--- src/login.c
+++ src/login.c
@@ -510,11 +510,11 @@
510 if( zOtherRepo==0 ) return 0; /* No such peer repository */
511
512 rc = sqlite3_open(zOtherRepo, &pOther);
513 if( rc==SQLITE_OK ){
514 sqlite3_create_function(pOther,"now",0,SQLITE_ANY,0,db_now_function,0,0);
515 sqlite3_create_function(pOther, "constant_time_eq", 2, SQLITE_UTF8, 0,
516 constant_time_eq_function, 0, 0);
517 sqlite3_busy_timeout(pOther, 5000);
518 zSQL = mprintf(
519 "SELECT cexpire FROM user"
520 " WHERE login=%Q"
521

Keyboard Shortcuts

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