summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2011-10-26 10:04:11 +0200
committerMatthias Dieter Wallnöfer <mdw@samba.org>2011-10-27 18:52:28 +0200
commit7161bb4b374523fdc075205362cf93997671c3bc (patch)
tree554ad34e99dbd84320e48bc16f1761148948c130 /source4
parentc9ac02895138239126231ed9752f501ceb8f0747 (diff)
downloadsamba-7161bb4b374523fdc075205362cf93997671c3bc.tar.gz
samba-7161bb4b374523fdc075205362cf93997671c3bc.tar.bz2
samba-7161bb4b374523fdc075205362cf93997671c3bc.zip
s4:password_hash LDB module - fix compiler warning due to unsatisfied "switch"
Bail out on other LDB request types (only add and modify allowed).
Diffstat (limited to 'source4')
-rw-r--r--source4/dsdb/samdb/ldb_modules/password_hash.c3
1 files changed, 3 insertions, 0 deletions
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) {