From e49a2011def5f6dfbf9c547299a67b60cebb6142 Mon Sep 17 00:00:00 2001 From: kanoi Date: Mon, 6 Oct 2014 12:11:42 +1100 Subject: [PATCH] ckdb - fix password reset always false --- src/ckdb.h | 2 +- src/ckdb_cmd.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ckdb.h b/src/ckdb.h index 97706cdc..37fadec1 100644 --- a/src/ckdb.h +++ b/src/ckdb.h @@ -52,7 +52,7 @@ #define DB_VLOCK "1" #define DB_VERSION "0.9.2" -#define CKDB_VERSION DB_VERSION"-0.403" +#define CKDB_VERSION DB_VERSION"-0.405" #define WHERE_FFL " - from %s %s() line %d" #define WHERE_FFL_HERE __FILE__, __func__, __LINE__ diff --git a/src/ckdb_cmd.c b/src/ckdb_cmd.c index 5d146727..b5abc749 100644 --- a/src/ckdb_cmd.c +++ b/src/ckdb_cmd.c @@ -52,7 +52,7 @@ static char *cmd_newpass(__maybe_unused PGconn *conn, char *cmd, char *id, K_ITEM *i_username, *i_oldhash, *i_newhash, *u_item; char reply[1024] = ""; size_t siz = sizeof(reply); - bool ok = false; + bool ok = true; char *oldhash; LOGDEBUG("%s(): cmd '%s'", __func__, cmd);