From 6fd025376c1d5064420e6429c7fe8d45ec1cb3b1 Mon Sep 17 00:00:00 2001 From: MassimilianoPinto Date: Mon, 20 Feb 2017 16:21:37 +0100 Subject: [PATCH] Missing NULL check Missing NULL check added --- server/modules/routing/binlogrouter/blr_file.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/modules/routing/binlogrouter/blr_file.c b/server/modules/routing/binlogrouter/blr_file.c index 31a2b220b..c4d80905d 100644 --- a/server/modules/routing/binlogrouter/blr_file.c +++ b/server/modules/routing/binlogrouter/blr_file.c @@ -1985,7 +1985,8 @@ blr_read_events_all_events(ROUTER_INSTANCE *router, } /* Find and report Transaction start for event replacing only */ - if (action->pos > 4 && + if (action && + action->pos > 4 && action->replace_trx && pos == action->pos && pending_transaction)