>>>      /* Check the remote host's key against known_hosts. */
>>> -    ret = check_host_key(s, host, port, host_key_check, errp);
>>> +    ret = check_host_key(s, s->inet->host, port, host_key_check,
>> But then you're still using the port here... And I can't come up with a
>> way (not even a bad one) to get the numeric port. Maybe interpret the
>> addrinfo in inet_connect_saddr()? But getting that information out would
>> be ugly, if even possible...
> Will using strtol() do any good?

Better to use qemu_strtol() from cutils.c ?


Reply via email to