Преглед изворни кода

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