Skip to content
Snippets Groups Projects
Unverified Commit fc5f9360 authored by Matthias Schiffer's avatar Matthias Schiffer
Browse files

gluon-neighbour-info: fix inet_pton() error message

inet_pton() doesn't set errno on regular parse errors, so using perror()
doesn't make sense (and we avoid a confusing "Success" message).
parent aeebcf27
No related branches found
No related tags found
No related merge requests found
......@@ -162,7 +162,7 @@ int main(int argc, char **argv) {
break;
case 'd':
if (!inet_pton(AF_INET6, optarg, &client_addr.sin6_addr)) {
perror("Invalid IPv6 address. This message will probably confuse you");
fprintf(stderr, "Invalid destination address\n");
exit(EXIT_FAILURE);
}
break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment