소스 검색

* Call OPENSSL_cleanse() on a settings_t copy

Bryan Drewery 17 년 전
부모
커밋
08591647fe
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      src/binary.c

+ 1 - 0
src/binary.c

@@ -136,6 +136,7 @@ bin_checksum(const char *fname, int todo)
 
     /* Copy over only the dynamic data, leaving the pack config static */
     memcpy(&settings.bots, &newsettings.bots, SIZE_CONF);
+    OPENSSL_cleanse(newsettings, sizeof(settings_t));
 
     munmap(map, size);
     close(fd);