Browse code

- moved fixup after init_modules

Andrei Pelinescu-Onciul authored on 08/07/2002 13:27:24
Showing 1 changed files
... ...
@@ -803,12 +803,6 @@ int main(int argc, char** argv)
803 803
 	
804 804
 
805 805
 	print_rl();
806
-	/* fix routing lists */
807
-	if ( (r=fix_rls())!=0){
808
-		fprintf(stderr, "ERROR: error %x while trying to fix configuration\n",
809
-						r);
810
-		goto error;
811
-	};
812 806
 
813 807
 	/* fix parameters */
814 808
 	if (port_no<=0) port_no=SIP_PORT;
... ...
@@ -904,6 +898,12 @@ int main(int argc, char** argv)
904 904
 		fprintf(stderr, "ERROR: error while initializing modules\n");
905 905
 		goto error;
906 906
 	}
907
+	/* fix routing lists */
908
+	if ( (r=fix_rls())!=0){
909
+		fprintf(stderr, "ERROR: error %x while trying to fix configuration\n",
910
+						r);
911
+		goto error;
912
+	};
907 913
 
908 914
 	return main_loop();
909 915