X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fresolve-host%2Fresolve-host.c;h=43c8a229eb09deddd57709ff39ee9565693c1cc6;hb=590baf91f3fc9f0edd7986c66da00be10e48a25d;hp=4b46cdfa16cd7ff312be7863a8d456d7d66688fd;hpb=de292aa1dd1942e151ff034fcb88504a86742f97;p=elogind.git diff --git a/src/resolve-host/resolve-host.c b/src/resolve-host/resolve-host.c index 4b46cdfa1..43c8a229e 100644 --- a/src/resolve-host/resolve-host.c +++ b/src/resolve-host/resolve-host.c @@ -486,7 +486,7 @@ static int parse_argv(int argc, char *argv[]) { arg_type = dns_type_from_string(optarg); if (arg_type < 0) { log_error("Failed to parse RR record type %s", optarg); - return r; + return arg_type; } assert(arg_type > 0 && (uint16_t) arg_type == arg_type);