From f2b0005bf715a66acdf1687b83a2a5ce56d7c029 Mon Sep 17 00:00:00 2001 From: dcp1990 Date: Mon, 20 Jun 2005 01:45:08 +0000 Subject: [PATCH] lres != pres --- phoned/db.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phoned/db.c b/phoned/db.c index aedda7c..ad142c9 100644 --- a/phoned/db.c +++ b/phoned/db.c @@ -27,7 +27,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. */ -/* $Amigan: phoned/phoned/db.c,v 1.6 2005/06/20 01:39:50 dcp1990 Exp $ */ +/* $Amigan: phoned/phoned/db.c,v 1.7 2005/06/20 01:45:08 dcp1990 Exp $ */ #include #include #include @@ -176,7 +176,7 @@ short db_check_crend(loginna, pass) while((rc = sqlite3_step(cst)) == SQLITE_ROW) { lres = sqlite3_column_text(cst, 0); pres = sqlite3_column_text(cst, 1); - if(strcmp(lres, loginna) == 0 && strcasecmp(lres, pmd5) == 0) { + if(strcmp(lres, loginna) == 0 && strcasecmp(pres, pmd5) == 0) { di = 1; break; }