Skip to content

Commit

Permalink
nat_traversal: use literal module name for stats group
Browse files Browse the repository at this point in the history
- prevent conflicts with global exports
  • Loading branch information
miconda committed Nov 23, 2023
1 parent 6099608 commit f35f327
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/nat_traversal/nat_traversal.c
Expand Up @@ -1861,7 +1861,7 @@ static int mod_init(void)

#ifdef STATISTICS
// we need the statistics initialized before restoring the keepalive state
if(register_module_stats(exports.name, statistics) < 0) {
if(register_module_stats("nat_traversal", statistics) < 0) {
LM_ERR("failed to initialize module statistics\n");
return -1;
}
Expand Down

0 comments on commit f35f327

Please sign in to comment.