s4:password_hash LDB module - fix compiler warning due to unsatisfied "switch"
authorMatthias Dieter Wallnöfer <mdw@samba.org>
Wed, 26 Oct 2011 08:04:11 +0000 (10:04 +0200)
committerMatthias Dieter Wallnöfer <mdw@samba.org>
Thu, 27 Oct 2011 16:52:28 +0000 (18:52 +0200)
Bail out on other LDB request types (only add and modify allowed).

source4/dsdb/samdb/ldb_modules/password_hash.c

index 9fcdcf7ac8982e5c4d774cb6118ea81383f1917b..bf94ba3dc328744f68443b5e0fac643cfa7c6f39 100644 (file)
@@ -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) {