X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fwebsock.c;fp=src%2Fwebsock.c;h=0bbd56ac6471c3cb44de90593a029df04de589cf;hb=513913fac6d36ca3b09500865eafa8836e806a94;hp=1b127c8bb2b1fa669d1de2cd6412cd40cd7c2c04;hpb=ae624bd468fa117adb66a5f5cc9938eae8813d1f;p=src%2Fapp-framework-binder.git diff --git a/src/websock.c b/src/websock.c index 1b127c8b..0bbd56ac 100644 --- a/src/websock.c +++ b/src/websock.c @@ -312,6 +312,7 @@ loop: ws->lenhead = 0; ws->szhead = 2; ws->state = STATE_START; + /*@fallthrough@*/ case STATE_START: /* read the header */ @@ -342,12 +343,15 @@ loop: switch (FRAME_GET_PAYLOAD_LEN(ws->header[1])) { case 127: ws->szhead += 6; + /*@fallthrough@*/ case 126: ws->szhead += 2; + /*@fallthrough@*/ default: ws->szhead += 4 * FRAME_GET_MASK(ws->header[1]); } ws->state = STATE_LENGTH; + /*@fallthrough@*/ case STATE_LENGTH: /* continue to read the header */