File rdesktop-scard.patch of Package rdesktop
Index: scard.c =================================================================== --- scard.c (revision 1609) +++ scard.c (working copy) @@ -1874,7 +1874,7 @@ dwAttrLen = MAX_BUFFER_SIZE; - if (dwAttrLen > SCARD_AUTOALLOCATE) + if ((dwAttrLen > SCARD_AUTOALLOCATE) || (dwAttrLen == 0)) pbAttr = NULL; else if ((dwAttrLen < 0) || (dwAttrLen > SCARD_MAX_MEM)) {