From 7161bb4b374523fdc075205362cf93997671c3bc Mon Sep 17 00:00:00 2001 From: Matthias Dieter Wallnöfer Date: Wed, 26 Oct 2011 10:04:11 +0200 Subject: s4:password_hash LDB module - fix compiler warning due to unsatisfied "switch" Bail out on other LDB request types (only add and modify allowed). --- source4/dsdb/samdb/ldb_modules/password_hash.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source4/dsdb/samdb') diff --git a/source4/dsdb/samdb/ldb_modules/password_hash.c b/source4/dsdb/samdb/ldb_modules/password_hash.c index 9fcdcf7ac8..bf94ba3dc3 100644 --- a/source4/dsdb/samdb/ldb_modules/password_hash.c +++ b/source4/dsdb/samdb/ldb_modules/password_hash.c @@ -1673,6 +1673,9 @@ static int setup_last_set_field(struct setup_password_fields_io *io) case LDB_MODIFY: msg = io->ac->req->op.mod.message; break; + default: + return LDB_ERR_OPERATIONS_ERROR; + break; } if (io->ac->pwd_last_set_bypass) { -- cgit