projects
/
tinc
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e838289
)
Return false instead of void when there is an error.
author
Guus Sliepen
<guus@tinc-vpn.org>
Tue, 30 Aug 2011 18:49:48 +0000
(20:49 +0200)
committer
Guus Sliepen
<guus@tinc-vpn.org>
Tue, 30 Aug 2011 18:49:48 +0000
(20:49 +0200)
src/net_setup.c
patch
|
blob
|
history
diff --git
a/src/net_setup.c
b/src/net_setup.c
index
c4337cc
..
a11f006
100644
(file)
--- a/
src/net_setup.c
+++ b/
src/net_setup.c
@@
-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);