]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:auth_sam: replace confusing FALL_THROUGH; with break;
authorStefan Metzmacher <metze@samba.org>
Thu, 23 Jan 2020 14:48:39 +0000 (15:48 +0100)
committerKarolin Seeger <kseeger@samba.org>
Tue, 11 Feb 2020 07:51:23 +0000 (07:51 +0000)
There's no real logic change here, but is makes it easier to
understand.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14247

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
(cherry picked from commit 85b168c6dac88f5065c0ec6e925937439f2c12ed)

source3/auth/auth_sam.c

index 46958c54d3a368910cb55888a931c1831a102166..1ccaededc2dd652f60ae1c4474859045cc826247 100644 (file)
@@ -89,7 +89,7 @@ static NTSTATUS auth_samstrict_auth(const struct auth_context *auth_context,
                                return NT_STATUS_NOT_IMPLEMENTED;
                        }
 
-                       FALL_THROUGH;
+                       break;
                case ROLE_DOMAIN_PDC:
                case ROLE_DOMAIN_BDC:
                        if ( !is_local_name && !is_my_domain ) {
@@ -98,7 +98,7 @@ static NTSTATUS auth_samstrict_auth(const struct auth_context *auth_context,
                                return NT_STATUS_NOT_IMPLEMENTED;
                        }
 
-                       FALL_THROUGH;
+                       break;
                default: /* name is ok */
                        break;
        }