Skip to content

Commit

Permalink
Merge pull request #969 from yuyuyu101/wip-7040
Browse files Browse the repository at this point in the history
Fix segmentation fault when handler is NULL pointer

Reviewed-by: Sage Weil <sage@inktank.com>
  • Loading branch information
Sage Weil committed Dec 19, 2013
2 parents eb12c81 + 98af37d commit 2cf9fa9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/os/MemStore.cc
Expand Up @@ -648,7 +648,9 @@ int MemStore::queue_transactions(Sequencer *osr,

for (list<Transaction*>::iterator p = tls.begin(); p != tls.end(); ++p) {
// poke the TPHandle heartbeat just to exercise that code path
handle->reset_tp_timeout();
if (handle)
handle->reset_tp_timeout();

_do_transaction(**p);
}

Expand Down

0 comments on commit 2cf9fa9

Please sign in to comment.