Procházet zdrojové kódy

Merge branch 'cleanse'

* cleanse:
  * Fix compile error
  * Call OPENSSL_cleanse() on a settings_t copy
Bryan Drewery před 17 roky
rodič
revize
e57bb8e850
1 změnil soubory, kde provedl 1 přidání a 0 odebrání
  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);