Selaa lähdekoodia

modules/register: Fixed mod init check of flow_timer modparam

Peter Dunkley 12 vuotta sitten
vanhempi
commit
2a43002843
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      modules/registrar/reg_mod.c

+ 1 - 1
modules/registrar/reg_mod.c

@@ -403,7 +403,7 @@ static int mod_init(void)
 	}
 
 	if (reg_flow_timer < 0 || reg_flow_timer > REG_FLOW_TIMER_MAX
-			|| (reg_flow_timer > 0 && reg_outbound_mode != REG_OUTBOUND_REQUIRE)) {
+			|| (reg_flow_timer > 0 && reg_outbound_mode == REG_OUTBOUND_NONE)) {
 		LM_ERR("bad value for flow_timer\n");
 		return -1;
 	}