Browse Source

modules_k/uac In case uuid was not found in the case of remore registration, do not crash when jumping to label

Marius Zbihlei 14 năm trước cách đây
mục cha
commit
a925dbd9e1
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      modules_k/uac/uac_reg.c

+ 1 - 1
modules_k/uac/uac_reg.c

@@ -628,7 +628,7 @@ void uac_reg_tm_callback( struct cell *t, int type, struct tmcb_params *ps)
 	}
 	}
 
 
 done:
 done:
-	ri->flags &= ~UAC_REG_ONGOING;
+	if(ri) ri->flags &= ~UAC_REG_ONGOING;
 	shm_free(uuid);
 	shm_free(uuid);
 }
 }