summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Sommerseth <dazo@users.sourceforge.net>2013-06-13 00:37:41 +0200
committerDavid Sommerseth <dazo@users.sourceforge.net>2013-06-13 00:37:41 +0200
commitcb6596b5e21116c93bd3f3a289367540308b3fd7 (patch)
treedcbc60235f0556f82e94ae42ccc0ce14584b0e0a
parent70ddee4cf0e4f0b95512889ef4831096342b6fb8 (diff)
downloadeurephia-cb6596b5e21116c93bd3f3a289367540308b3fd7.tar.gz
eurephia-cb6596b5e21116c93bd3f3a289367540308b3fd7.tar.xz
eurephia-cb6596b5e21116c93bd3f3a289367540308b3fd7.zip
database: Bugfix - missing break statement caused password hash to be overwritten
When commit 85ad4bbb21e478b5b3699dfa14c97dccfd336f10 was added, it was missing a break statement at the end of the 'case ft_PASSWD' block. This resulted in a corrupted password hash when initialising the database or changing the password for users - as it would be overwritten by the following boolean parsing. I'd like to thank Colin Ryan for catching this bug. Signed-off-by: David Sommerseth <dazo@users.sourceforge.net>
-rw-r--r--database/eurephiadb_mapping.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/database/eurephiadb_mapping.c b/database/eurephiadb_mapping.c
index 6ae289d..5033c43 100644
--- a/database/eurephiadb_mapping.c
+++ b/database/eurephiadb_mapping.c
@@ -312,6 +312,7 @@ eDBfieldMap *eDBxmlMapping(eurephiaCTX *ctx, eDBfieldMap *dbmap, const char *tbl
NULL)
: strdup(""));
}
+ break;
case ft_BOOL:
// Normalise boolean values.