projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Don't tarpit localhost connections
[tinc]
/
src
/
cipher.c
diff --git
a/src/cipher.c
b/src/cipher.c
index
5ac790a
..
4e4fb9c
100644
(file)
--- a/
src/cipher.c
+++ b/
src/cipher.c
@@
-28,11
+28,10
@@
cipher_t *cipher_alloc(void) {
return xzalloc(sizeof(cipher_t));
}
return xzalloc(sizeof(cipher_t));
}
-void cipher_free(cipher_t **cipher) {
- if(cipher && *cipher) {
- cipher_close(*cipher);
- free(*cipher);
- *cipher = NULL;
+void cipher_free(cipher_t *cipher) {
+ if(cipher) {
+ cipher_close(cipher);
+ free(cipher);
}
}
}
}