Przeglądaj źródła

nat_traversal: use literal module name for stats group

- prevent conflicts with global exports
Daniel-Constantin Mierla 1 rok temu
rodzic
commit
f35f327a52
1 zmienionych plików z 1 dodań i 1 usunięć
  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;
 	}