From b7405adf485987f532af0b9b35c6dc128a48cebc Mon Sep 17 00:00:00 2001 From: kanoi Date: Tue, 7 Oct 2014 13:34:04 +1100 Subject: [PATCH] correct password success message on a missing user --- src/ckdb.h | 2 +- src/ckdb_cmd.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ckdb.h b/src/ckdb.h index 008404ab..91734fd7 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.501" +#define CKDB_VERSION DB_VERSION"-0.502" #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 8995f134..a812cd77 100644 --- a/src/ckdb_cmd.c +++ b/src/ckdb_cmd.c @@ -91,7 +91,8 @@ static char *cmd_newpass(__maybe_unused PGconn *conn, char *cmd, char *id, NULL, by, code, inet, now, trf_root); - } + } else + ok = false; } if (!ok) {