Initialize sign to NULL so that we don't attempt to free() it in case
of failure. MFC after: 1 week
This commit is contained in:
parent
bb5bdd386e
commit
b655930760
@ -104,6 +104,7 @@ sign(filename, type, userid, envp)
|
||||
struct signature *sign;
|
||||
int success;
|
||||
|
||||
sign = NULL;
|
||||
switch(type) {
|
||||
case TAG_PGP:
|
||||
success = retrieve_pgp_signature(filename, &sign, userid, envp);
|
||||
|
Loading…
Reference in New Issue
Block a user