[Spice-devel] [PATCH spice 1/2] smartcard handling: Fix compilation when ASSERT-s are turned on
Hans de Goede
hdegoede at redhat.com
Fri Jan 13 06:28:15 PST 2012
Signed-off-by: Hans de Goede <hdegoede at redhat.com>
---
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
More information about the Spice-devel
mailing list