librpc:ndr: Add FALL_THROUGH statements in ndr_cab.c
authorAndreas Schneider <asn@samba.org>
Wed, 26 Jul 2017 15:03:09 +0000 (17:03 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 1 Mar 2018 03:37:42 +0000 (04:37 +0100)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
librpc/ndr/ndr_cab.c

index 837ed253065f9795320d7583aa06f51a71440435..c415bfab34ce9bef4a995640c9f6a68586567e43 100644 (file)
@@ -95,10 +95,13 @@ static uint32_t ndr_cab_compute_checksum(uint8_t *data, uint32_t length, uint32_
        switch (length % 4) {
        case 3:
                ul |= (((uint32_t)(*pb++)) << 16);
+               FALL_THROUGH;
        case 2:
                ul |= (((uint32_t)(*pb++)) <<  8);
+               FALL_THROUGH;
        case 1:
                ul |= (uint32_t)(*pb++);
+               FALL_THROUGH;
        default:
                break;
        }