[Spice-devel] [spice-devel] spice-xpi rhbz#805602

Marc-André Lureau mlureau at redhat.com
Tue Apr 3 05:39:49 PDT 2012



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


More information about the Spice-devel mailing list