respondd: 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).
This commit is contained in:
parent
a906d2447f
commit
2d89e972d9
|
@ -666,7 +666,7 @@ int main(int argc, char **argv) {
|
||||||
|
|
||||||
case 'g':
|
case 'g':
|
||||||
if (!inet_pton(AF_INET6, optarg, &mgroup_addr)) {
|
if (!inet_pton(AF_INET6, optarg, &mgroup_addr)) {
|
||||||
perror("Invalid multicast group. This message will probably confuse you");
|
fprintf(stderr, "Invalid multicast group address.\n");
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue