projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Give an error message when tincctl info cannot parse the given subnet or address.
[tinc]
/
src
/
info.c
diff --git
a/src/info.c
b/src/info.c
index
d0764da
..
f354f96
100644
(file)
--- a/
src/info.c
+++ b/
src/info.c
@@
-164,8
+164,10
@@
static int info_node(int fd, const char *item) {
static int info_subnet(int fd, const char *item) {
subnet_t subnet, find;
static int info_subnet(int fd, const char *item) {
subnet_t subnet, find;
- if(!str2net(&find, item))
+ if(!str2net(&find, item)) {
+ fprintf(stderr, "Could not parse subnet or address '%s'.\n", item);
return 1;
return 1;
+ }
bool address = !strchr(item, '/');
bool weight = strchr(item, '#');
bool address = !strchr(item, '/');
bool weight = strchr(item, '#');