Re: [PATCH spice-server 07/11] red-stream: Use mechname for mechname

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Acked-by: Christophe Fergeau <cfergeau@xxxxxxxxxx>

On Mon, Dec 11, 2017 at 10:28:04AM +0000, Frediano Ziglio wrote:
> There's no reason to copy mechname into mechlist to use mechlist
> instead of mechname.
> 
> Signed-off-by: Frediano Ziglio <fziglio@xxxxxxxxxx>
> ---
>  server/red-stream.c | 7 ++-----
>  1 file changed, 2 insertions(+), 5 deletions(-)
> 
> diff --git a/server/red-stream.c b/server/red-stream.c
> index 5ddf8c54..55e2c3e0 100644
> --- a/server/red-stream.c
> +++ b/server/red-stream.c
> @@ -886,9 +886,9 @@ RedSaslError red_sasl_handle_auth_start(RedStream *stream, AsyncReadDone read_cb
>      }
>  
>      spice_debug("Start SASL auth with mechanism %s. Data %p (%d bytes)",
> -               sasl->mechlist, clientdata, datalen);
> +               sasl->mechname, clientdata, datalen);
>      err = sasl_server_start(sasl->conn,
> -                            sasl->mechlist,
> +                            sasl->mechname,
>                              clientdata,
>                              datalen,
>                              &serverout,
> @@ -1001,9 +1001,6 @@ bool red_sasl_handle_auth_mechname(RedStream *stream, AsyncReadDone read_cb, voi
>          }
>      }
>  
> -    g_free(sasl->mechlist);
> -    sasl->mechlist = g_strdup(sasl->mechname);
> -
>      spice_debug("Validated mechname '%s'", sasl->mechname);
>  
>      red_stream_async_read(stream, (uint8_t *)&sasl->len, sizeof(uint32_t),
> -- 
> 2.14.3
> 
> _______________________________________________
> Spice-devel mailing list
> Spice-devel@xxxxxxxxxxxxxxxxxxxxx
> https://lists.freedesktop.org/mailman/listinfo/spice-devel

Attachment: signature.asc
Description: PGP signature

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]