Skip to content

Commit

Permalink
digest_openssl: return failure if setting key failed
Browse files Browse the repository at this point in the history
digest_openssl.c:552:9: warning: Value stored to 'rc' is never read
        rc = 0;
        ^    ~
Acked-by: Stephen Gallagher <sgallagh@redhat.com>
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
  • Loading branch information
ignatenkobrain authored and ffesti committed Jul 30, 2017
1 parent 715f7bc commit 0ac96d5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rpmio/digest_openssl.c
Original file line number Diff line number Diff line change
Expand Up @@ -550,6 +550,7 @@ static int constructDSASigningKey(struct pgpDigKeyDSA_s *key)

if (!DSA_set0_key(dsa, key->y, NULL)) {
rc = 0;
goto done;
}

key->dsa_key = dsa;
Expand Down

0 comments on commit 0ac96d5

Please sign in to comment.