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
/
utils.c
diff --git
a/src/utils.c
b/src/utils.c
index
5f40b8a
..
231938d
100644
(file)
--- a/
src/utils.c
+++ b/
src/utils.c
@@
-373,3
+373,7
@@
FILE *fopenmask(const char *filename, const char *mode, mode_t perms) {
return f;
}
+bool string_eq(const char *first, const char *second) {
+ return !first == !second &&
+ !(first && second && strcmp(first, second));
+}