chiark / gitweb /
resolve-host: fix missed search&replace
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 4 Aug 2014 03:41:45 +0000 (23:41 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 4 Aug 2014 03:53:49 +0000 (23:53 -0400)
src/resolve-host/resolve-host.c

index 4b46cdf..43c8a22 100644 (file)
@@ -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);