소스 검색

Clean out private key memory area in case of parser override is used

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1000 fd59a12c-fef9-0310-b244-a6a79926bd2f
Steven Dake 20 년 전
부모
커밋
4c75519ea3
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      exec/totemconfig.c

+ 3 - 0
exec/totemconfig.c

@@ -508,6 +508,9 @@ int totem_config_keyread (
 	unsigned int object_service_handle;
 	int res;
 
+	memset (totem_config->private_key, 0, 128);
+	totem_config->private_key_len = 128;
+
 	if (totem_config->secauth == 0) {
 		return (0);
 	}