projects
/
oweals
/
tinc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
50afa82
)
Don't warn about empty lines in invitation files.
author
Guus Sliepen
<guus@tinc-vpn.org>
Fri, 5 Jan 2018 16:12:06 +0000
(17:12 +0100)
committer
Guus Sliepen
<guus@tinc-vpn.org>
Fri, 5 Jan 2018 16:12:06 +0000
(17:12 +0100)
src/invitation.c
patch
|
blob
|
history
diff --git
a/src/invitation.c
b/src/invitation.c
index d6f00a55e6e6e1b24a29db1ad3170ab566d31250..5dc8c6300e452819caa3c963b44b843886bcf9a8 100644
(file)
--- a/
src/invitation.c
+++ b/
src/invitation.c
@@
-769,13
+769,19
@@
make_names:
l[len] = 0;
+ // Ignore lines with empty variable names
+ if(!*l) {
+ continue;
+ }
+
// Is it a Name?
- if(!strcasecmp(l, "Name"))
+ if(!strcasecmp(l, "Name"))
{
if(strcmp(value, name)) {
break;
} else {
continue;
- } else if(!strcasecmp(l, "NetName")) {
+ }
+ } else if(!strcasecmp(l, "NetName")) {
continue;
}