Skip to content

Commit c39628c

Browse files
committed
ruleproc: add missing nullptr check to exmdb_client::read_message callsite
Fixes: gromox-2.27-57-gc7d6d3e5b
1 parent 4ab4b29 commit c39628c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/ruleproc.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1222,6 +1222,8 @@ ec_error_t rxparam::run()
12221222
if (!exmdb_client::read_message(cur.dirc(), nullptr, CP_ACP,
12231223
cur.mid, &unique_tie(ctnt)))
12241224
return ecError;
1225+
if (ctnt == nullptr)
1226+
return ecNotFound;
12251227
for (auto &&rule : rule_list) {
12261228
err = rule.extended ? opx_process(*this, rule) : op_process(*this, rule);
12271229
if (err != ecSuccess)

0 commit comments

Comments
 (0)