Browse code

core: set response functions list after mod init

- some modules set the response function in mod_init
- case of nathelper(k)
- reported by Andres Moya
(cherry picked from commit ee51f2f714d52d6cc36417bb65b764d718514984)

Daniel-Constantin Mierla authored on 26/11/2009 20:29:45
Showing 1 changed files
... ...
@@ -899,6 +899,10 @@ int init_modules(void)
899 899
 	struct sr_module* t;
900 900
 	int i;
901 901
 	
902
+	i = init_mod(modules);
903
+	if(i!=0)
904
+		return i;
905
+
902 906
 	for(t = modules; t; t = t->next)
903 907
 		if (t->exports){
904 908
 			switch(t->mod_interface_ver){
... ...
@@ -938,7 +942,7 @@ int init_modules(void)
938 938
 		}
939 939
 	}
940 940
 	
941
-	return init_mod(modules);
941
+	return 0;
942 942
 }
943 943
 
944 944
 #endif