s3:mdssvc: fix a long line
authorRalph Boehme <slow@samba.org>
Tue, 13 Aug 2019 12:13:20 +0000 (14:13 +0200)
committerRalph Boehme <slow@samba.org>
Wed, 9 Oct 2019 14:35:29 +0000 (14:35 +0000)
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Noel Power <noel.power@suse.com>
source3/rpc_server/mdssvc/srv_mdssvc_nt.c

index 84534ccda2ee53534d7393a5a4b8dc6773c19bbe..c5e5a46c01e89de6e4f475a1aabaac9206f3afa0 100644 (file)
@@ -304,8 +304,10 @@ void _mdssvc_cmd(struct pipes_struct *p, struct mdssvc_cmd *r)
 void _mdssvc_close(struct pipes_struct *p, struct mdssvc_close *r)
 {
        struct mds_ctx *mds_ctx;
+       bool ok;
 
-       if (!find_policy_by_hnd(p, &r->in.in_handle, (void **)(void *)&mds_ctx)) {
+       ok = find_policy_by_hnd(p, &r->in.in_handle, (void **)(void *)&mds_ctx);
+       if (!ok) {
                DBG_WARNING("invalid handle\n");
                if (is_zero_policy_handle(&r->in.in_handle)) {
                        p->fault_state = 0;