Explorar o código

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

Daniel-Constantin Mierla %!s(int64=11) %!d(string=hai) anos
pai
achega
bf6cb8e2df
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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)
 	{
 		LM_ERR("shm not initialized - cannot set value for PVs\n");
-		goto error;
+		return -1;
 	}
 
 	s.s = (char*)val;