From 2d89e972d9dda24c9a385e7bf660cc3cc5724511 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Sun, 21 Apr 2019 17:38:12 +0200 Subject: [PATCH] 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). --- net/respondd/src/respondd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/respondd/src/respondd.c b/net/respondd/src/respondd.c index a6e0082..e67ee41 100644 --- a/net/respondd/src/respondd.c +++ b/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); }