Changeset 732cc15


Ignore:
Timestamp:
Mar 1, 2010, 8:15:37 PM (10 years ago)
Author:
Anders Kaseorg <andersk@mit.edu>
Branches:
master, release-1.6, release-1.7, release-1.8, release-1.9
Children:
7a3a747
Parents:
1a01720
git-author:
Anders Kaseorg <andersk@mit.edu> (02/28/10 03:36:01)
git-committer:
Anders Kaseorg <andersk@mit.edu> (03/01/10 20:15:37)
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

    rf61e7ac r732cc15  
    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.