----- Mensaje original -----
> +    if (port < 0 && sport < 0)
> +    {
> +        if (port < 0)
> +            LOG_ERROR("invalid port: " << m_port);
> +        if (sport < 0)
> +            LOG_ERROR("invalid secure port: " << m_secure_port);
> +        return;
> +    }

If one of the value is invalid or garbage and the second is valid, you will 
silently ignore the error and continue. I think if any value is wrong (not 
within -1..65535, it should error out)
_______________________________________________
Spice-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/spice-devel

Reply via email to