Changeset 337f7d5


Ignore:
Timestamp:
Mar 1, 2010, 8:33:49 PM (10 years ago)
Author:
Nelson Elhage <nelhage@mit.edu>
Branches:
release-1.5
Children:
7306b0f
Parents:
2d0de76
git-author:
Anders Kaseorg <andersk@mit.edu> (02/28/10 03:36:01)
git-committer:
Nelson Elhage <nelhage@mit.edu> (03/01/10 20:33:49)
Message:
owl_zcrypt_decrypt, owl_zcrypt_encrypt: Don’t leak the key filename.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
Reviewed-by: Alejandro R. Sedeño <asedeno@mit.edu>
File:
1 edited

Legend:

Unmodified
Added
Removed
  • zcrypt.c

    r212d8b7 r337f7d5  
    8686  if (!fname) return NULL;
    8787  fkey=fopen(fname, "r");
     88  owl_free(fname);
    8889  if (!fkey) return NULL;
    8990  if (!fgets(keystring, MAX_KEY-1, fkey)) {
     
    139140  if (!fname) return NULL;
    140141  fkey=fopen(fname, "r");
     142  owl_free(fname);
    141143  if (!fkey) return NULL;
    142144  if (!fgets(keystring, MAX_KEY-1, fkey)) {
Note: See TracChangeset for help on using the changeset viewer.