mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
Fix NULL pointer dereference
This commit is contained in:
parent
10f654dfcd
commit
7759f3017e
2 changed files with 3 additions and 1 deletions
|
@ -115,7 +115,7 @@ verify_signatures( int nfiles, char **files )
|
|||
rc = proc_signature_packets( NULL, fp, sl, sigfile );
|
||||
free_strlist(sl);
|
||||
iobuf_close(fp);
|
||||
if( (afx->no_openpgp_data && rc == -1) || rc == G10ERR_NO_DATA ) {
|
||||
if( (afx && afx->no_openpgp_data && rc == -1) || rc == G10ERR_NO_DATA ) {
|
||||
log_error(_("the signature could not be verified.\n"
|
||||
"Please remember that the signature file (.sig or .asc)\n"
|
||||
"should be the first file given on the command line.\n") );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue