浏览代码

nat_traversal: use literal module name for stats group

- prevent conflicts with global exports
Daniel-Constantin Mierla 1 年之前
父节点
当前提交
f35f327a52
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/modules/nat_traversal/nat_traversal.c

+ 1 - 1
src/modules/nat_traversal/nat_traversal.c

@@ -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;
 	}