Skip to content

Commit

Permalink
add assert
Browse files Browse the repository at this point in the history
  • Loading branch information
chronolaw committed Jul 4, 2023
1 parent fa3fe7a commit 69fe964
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ngx_lua_resty_lmdb_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -567,6 +567,8 @@ ngx_lua_resty_lmdb_validate(ngx_cycle_t *cycle,
return NGX_OK;
}

ngx_lua_resty_lmdb_assert(lcf->validation_tag.data);

rc = mdb_txn_begin(lcf->env, NULL, 0, &txn);
if (rc != 0) {
ngx_log_error(NGX_LOG_CRIT, cycle->log, 0,
Expand Down

0 comments on commit 69fe964

Please sign in to comment.