소스 검색

jsonrpc: init len variable to avoid invalid usage

Daniel-Constantin Mierla 8 년 전
부모
커밋
054812952f
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      src/modules/jsonrpcs/jsonrpcs_mod.c

+ 1 - 0
src/modules/jsonrpcs/jsonrpcs_mod.c

@@ -951,6 +951,7 @@ static struct rpc_delayed_ctx* jsonrpc_delayed_ctx_new(jsonrpc_ctx_t* ctx)
 
 	ret=0;
 	shm_msg=0;
+	len = 0;
 
 	if (ctx->reply_sent) {
 		LM_ERR("response already sent - cannot create a delayed context\n");