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:
53735a9
)
Give an error message when tincctl info cannot parse the given subnet or address.
author
Guus Sliepen
<guus@tinc-vpn.org>
Sun, 15 Jul 2012 23:09:47 +0000
(
01:09
+0200)
committer
Guus Sliepen
<guus@tinc-vpn.org>
Sun, 15 Jul 2012 23:09:47 +0000
(
01:09
+0200)
src/info.c
patch
|
blob
|
history
diff --git
a/src/info.c
b/src/info.c
index d0764da2303ffe61ebcc32f5037c878f56d05c04..f354f96feb4bb114e65a5981e0a5a30264cb8349 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;
- if(!str2net(&find, item))
+ if(!str2net(&find, item)) {
+ fprintf(stderr, "Could not parse subnet or address '%s'.\n", item);
return 1;
+ }
bool address = !strchr(item, '/');
bool weight = strchr(item, '#');