浏览代码

pv: return error if shm is not initialized when $shv() is used

Daniel-Constantin Mierla 11 年之前
父节点
当前提交
bf6cb8e2df
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      modules/pv/pv_shv.c

+ 1 - 1
modules/pv/pv_shv.c

@@ -775,7 +775,7 @@ int param_set_xvar( modparam_t type, void* val, int mode)
 	if(!shm_initialized()!=0)
 	if(!shm_initialized()!=0)
 	{
 	{
 		LM_ERR("shm not initialized - cannot set value for PVs\n");
 		LM_ERR("shm not initialized - cannot set value for PVs\n");
-		goto error;
+		return -1;
 	}
 	}
 
 
 	s.s = (char*)val;
 	s.s = (char*)val;