Fossil SCM

In http_build_login_card(), send no login card when a sync started from the /xfersetup page has a user name in its URL and no saved password. The missing password was passed on as a null pointer.

dmestas 2026-11-22 11:36 UTC small-fixes
Commit ea6766e3ae748d0d3e96487f45e3755f5a6d530757c1adb0b57876680c4f2cea
1 file changed +3 -1
+3 -1
--- src/http.c
+++ src/http.c
@@ -86,11 +86,13 @@
8686
if( g.url.passwd ){
8787
zPw = g.url.passwd;
8888
}else if( g.cgiOutput ){
8989
/* Password failure while doing a sync from the web interface */
9090
cgi_printf("*** incorrect or missing password for user %h\n", zLogin);
91
- zPw = 0;
91
+ blob_reset(&pw);
92
+ blob_reset(&nonce);
93
+ return;
9294
}else{
9395
/* Password failure while doing a sync from the command-line interface */
9496
url_prompt_for_password();
9597
zPw = g.url.passwd;
9698
}
9799
--- src/http.c
+++ src/http.c
@@ -86,11 +86,13 @@
86 if( g.url.passwd ){
87 zPw = g.url.passwd;
88 }else if( g.cgiOutput ){
89 /* Password failure while doing a sync from the web interface */
90 cgi_printf("*** incorrect or missing password for user %h\n", zLogin);
91 zPw = 0;
 
 
92 }else{
93 /* Password failure while doing a sync from the command-line interface */
94 url_prompt_for_password();
95 zPw = g.url.passwd;
96 }
97
--- src/http.c
+++ src/http.c
@@ -86,11 +86,13 @@
86 if( g.url.passwd ){
87 zPw = g.url.passwd;
88 }else if( g.cgiOutput ){
89 /* Password failure while doing a sync from the web interface */
90 cgi_printf("*** incorrect or missing password for user %h\n", zLogin);
91 blob_reset(&pw);
92 blob_reset(&nonce);
93 return;
94 }else{
95 /* Password failure while doing a sync from the command-line interface */
96 url_prompt_for_password();
97 zPw = g.url.passwd;
98 }
99

Keyboard Shortcuts

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