]> git.ipfire.org Git - thirdparty/suricata.git/commit
Fix segfault when the protocol is anything other than HTTP 3368/head
authorElazar Broad <elazar@thebroadfamily.com>
Wed, 2 May 2018 16:38:40 +0000 (12:38 -0400)
committerVictor Julien <victor@inliniac.net>
Thu, 3 May 2018 12:51:25 +0000 (14:51 +0200)
commit6ba02cac50502d1c076f400ec30409618ac951d6
tree543c28bd2e54718d5eef0efbed8bdbf9bf5daa5b
parent2d2c01e7725fd78a578cb0c02e13caab0f076ef0
Fix segfault when the protocol is anything other than HTTP

When a file is transferred over anything other than HTTP, the previously hard-coded HTTP protocol would trigger a non-existent index into htp_list_array_get(), causing a segfault. This patch mimics the logic in detect-lua-extensions.c.
src/output-lua.c