Project

General

Profile

Bug #231 » 0001-Fix-a-segv-if-there-is-an-error-at-libhtp-no-connp.patch

Check the not NULL of connp and conn before using them. - Pablo Rincon, 08/27/2010 09:51 AM

View differences:

src/detect-http-method.c
htp_tx_t *tx = NULL;
int ret = 0;
if (hs == NULL) {
if (hs == NULL || hs->connp == NULL || hs->connp->conn == NULL) {
SCLogDebug("No HTP state.");
SCReturnInt(0);
}
(1-1/2)