projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix crash when no netname is specified.
[tinc]
/
src
/
tincd.c
diff --git
a/src/tincd.c
b/src/tincd.c
index
85aee39
..
9879ecb
100644
(file)
--- a/
src/tincd.c
+++ b/
src/tincd.c
@@
-231,7
+231,7
@@
static bool parse_options(int argc, char **argv) {
/* netname "." is special: a "top-level name" */
- if(!strcmp(netname, ".")) {
+ if(
netname &&
!strcmp(netname, ".")) {
free(netname);
netname = NULL;
}