Explorar o código

* Added missing "goto err;" in a mod_init() error case.

Juha Heinanen %!s(int64=16) %!d(string=hai) anos
pai
achega
904d8378c9
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      modules/lcr/lcr_mod.c

+ 1 - 0
modules/lcr/lcr_mod.c

@@ -612,6 +612,7 @@ static int mod_init(void)
     gws = (struct gw_info **)shm_malloc(sizeof(struct gw_info *));
     if (gws == 0) {
 	LM_ERR("no memory for gw table pointer\n");
+	goto err;
     }
     gws_1[0].ip_addr = 0;    /* Number of gateways in table */
     *gws = gws_1;