1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-23 21:35:11 +03:00

resolve-host: fix missed search&replace

This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2014-08-03 23:41:45 -04:00
parent fa1c4b518e
commit 590baf91f3

View 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);