Browse Source

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).
pull/222/head
Matthias Schiffer 3 years ago
parent
commit
2d89e972d9
No known key found for this signature in database GPG Key ID: 16EF3F64CB201D9C
  1. 2
      net/respondd/src/respondd.c

2
net/respondd/src/respondd.c

@ -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);
}

Loading…
Cancel
Save