[Spice-devel] [PATCH spice 1/2] smartcard handling: Fix compilation when ASSERT-s are turned on

Alon Levy alevy at redhat.com
Fri Jan 13 06:53:32 PST 2012


On Fri, Jan 13, 2012 at 03:28:15PM +0100, Hans de Goede wrote:
> Signed-off-by: Hans de Goede <hdegoede at redhat.com>

ACK both.

> ---
>  server/smartcard.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/server/smartcard.c b/server/smartcard.c
> index 08ba3da..43ca1ac 100644
> --- a/server/smartcard.c
> +++ b/server/smartcard.c
> @@ -453,7 +453,7 @@ static int smartcard_channel_handle_message(RedChannelClient *rcc,
>          return red_channel_client_handle_message(rcc, size, type, msg);
>      }
>  
> -    ASSERT(header->size == vheader->length + sizeof(VSCMsgHeader));
> +    ASSERT(size == vheader->length + sizeof(VSCMsgHeader));
>      switch (vheader->type) {
>          case VSC_ReaderAdd:
>              smartcard_add_reader(rcc, msg + sizeof(VSCMsgHeader));
> -- 
> 1.7.7.4
> 
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/spice-devel


More information about the Spice-devel mailing list