commit | ef91c939f364367bdc48f1b234c138d743abf56c | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Tue Jul 23 14:37:47 2019 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Tue Jul 23 14:37:47 2019 +0200 |
tree | 830a9852aaca5ee1f76f74a9803fa0dfab7fe131 | |
parent | f1204b8933ac5ac777f5dffb9dea6065fd30a03c [diff] |
BUG/MEDIUM: tcp-checks: do not dereference inexisting conn_stream Github user @jpulz reported a crash with tcp-checks in issue #184 where cs==NULL. If we enter the function with cs==NULL and check->result != CHK_RES_UKNOWN, we'll go directly to out_end_tcpcheck and dereference cs. We must validate there that cs is valid (and conn at the same time since it would be NULL as well). This fix must be backported as far as 1.8.