Differences From:
File
src/xfer.c
part of check-in
[dbda8d6ce9]
- Initial check-in of m1 sources.
by
drh on
2007-07-21 14:10:57.
[view]
To:
File
src/xfer.c
part of check-in
[916b6e4b3b]
- Improvements to web-based user management.
by
drh on
2007-07-21 19:32:06.
[view]
@@ -223,9 +223,9 @@
sha1sum_blob(&combined, &hash);
rc = blob_compare(&hash, pSig);
blob_reset(&hash);
blob_reset(&combined);
- if( rc ){
+ if( rc==0 ){
const char *zCap;
zCap = db_column_text(&q, 1);
login_set_capabilities(zCap);
g.userUid = db_column_int(&q, 2);
@@ -395,9 +395,9 @@
db_multi_exec(
"INSERT OR IGNORE INTO pending(rid) "
"SELECT rid FROM blob WHERE size>=0"
);
- }
+ }else
/* login USER NONCE SIGNATURE
**
** Check for a valid login. This has to happen before anything else.