Jelajahi Sumber

registrar: reg_xavp_cfg should not be reset when sock_flag is not set

- since there are functions like `registered()` would use it
- reported by Jayesh Nambiar (@jayesh1017) in the comment of GH#470
Ian Yu-Hsun Lin 9 tahun lalu
induk
melakukan
caeda232d6
1 mengubah file dengan 0 tambahan dan 1 penghapusan
  1. 0 1
      modules/registrar/reg_mod.c

+ 0 - 1
modules/registrar/reg_mod.c

@@ -365,7 +365,6 @@ static int mod_init(void)
 	} else if (reg_xavp_cfg.s) {
 		if (reg_xavp_cfg.len == 0 || sock_flag == -1) {
 			LM_WARN("empty reg_xavp_cfg or sock_flag no set -> resetting\n");
-			reg_xavp_cfg.len = 0;
 			sock_flag = -1;
 		}
 	} else if (sock_flag!=-1) {