Skip to content
  • Thomas Haller's avatar
    shared: improve nm_free_secret() to clear entire memory buffer · d63cd26e
    Thomas Haller authored
    The purpose is to clear the entire available buffer, not only
    up to the first '\0'. This is done, because otherwise we might
    leak sensitive data that happens to be after the first '\0',
    or we might give away the length of the secrets.
    
    Of course, those are very (very) minor concerns. But avoiding them is
    easy enough.
    d63cd26e