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:
Matthias Schiffer 2019-04-21 17:38:12 +02:00
parent a906d2447f
commit 2d89e972d9
No known key found for this signature in database
GPG Key ID: 16EF3F64CB201D9C
1 changed files with 1 additions and 1 deletions

View File

@ -666,7 +666,7 @@ int main(int argc, char **argv) {
case 'g':
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);
}