Return false instead of void when there is an error.
This commit is contained in:
parent
e838289683
commit
ddea7a23a6
1 changed files with 2 additions and 2 deletions
|
@ -116,7 +116,7 @@ bool read_rsa_public_key(connection_t *c) {
|
|||
if(!fp) {
|
||||
logger(LOG_ERR, "Error reading RSA public key file `%s': %s", fname, strerror(errno));
|
||||
free(fname);
|
||||
return;
|
||||
return false;
|
||||
}
|
||||
|
||||
c->rsa_key = PEM_read_RSAPublicKey(fp, &c->rsa_key, NULL, NULL);
|
||||
|
@ -134,7 +134,7 @@ bool read_rsa_public_key(connection_t *c) {
|
|||
if(!fp) {
|
||||
logger(LOG_ERR, "Error reading RSA public key file `%s': %s", fname, strerror(errno));
|
||||
free(fname);
|
||||
return;
|
||||
return false;
|
||||
}
|
||||
|
||||
c->rsa_key = PEM_read_RSA_PUBKEY(fp, &c->rsa_key, NULL, NULL);
|
||||
|
|
Loading…
Reference in a new issue