]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_http_websocket: ensure control frames do not interfere with data
authorJeremy Lainé <jeremy.laine@m4x.org>
Wed, 23 Jan 2019 10:45:56 +0000 (11:45 +0100)
committerJeremy Lainé <jeremy.laine@m4x.org>
Wed, 23 Jan 2019 15:02:02 +0000 (09:02 -0600)
commit907d71b5513d17e61b51798cd924fe97b4a5a3b0
tree972b082ca47068e662b185ab15112c5c4511644c
parent7d1736b59ba8e85cb3203a046317b08165586ea2
res_http_websocket: ensure control frames do not interfere with data

Control frames (PING / PONG / CLOSE) can be received in the middle of a
fragmented message. In order to ensure they do not interfere with the
reassembly buffer, we exit early and do not return the payload to the
caller.

ASTERISK-28257 #close

Change-Id: Ia5367144fe08ac6141bba3309517a48ec7f013bc
res/res_http_websocket.c