/* Get the TX so the script can get more context about it.
* TODO hardcoded to HTTP currently */
void *txptr = NULL;
- if (p && p->flow && p->flow->alstate)
+ if (p->flow && p->flow->alstate)
txptr = AppLayerParserGetTx(p->proto, ALPROTO_HTTP, p->flow->alstate, ff->txid);
SCMutexLock(&td->lua_ctx->m);
return output_ctx;
error:
-
- if (output_ctx != NULL) {
- if (output_ctx->DeInit && output_ctx->data)
- output_ctx->DeInit(output_ctx->data);
- SCFree(output_ctx);
- }
+ if (output_ctx->DeInit && output_ctx->data)
+ output_ctx->DeInit(output_ctx->data);
+ SCFree(output_ctx);
return NULL;
}