CVS: rdesktop scard.c,1.23,1.24

Pierre Ossman <[email protected]> Tue, 03 Jul 2007 07:20:07 -0700
Newsgroups gmane.network.rdesktop.cvs
Message-ID <[email protected]>
Update of /cvsroot/rdesktop/rdesktop
In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv1719

Modified Files:
	scard.c 
Log Message:
Respect mask used when searching for cards.


Index: scard.c
===================================================================
RCS file: /cvsroot/rdesktop/rdesktop/scard.c,v
retrieving revision 1.23
retrieving revision 1.24
diff -C2 -d -r1.23 -r1.24
*** scard.c	3 Jul 2007 14:08:06 -0000	1.23
--- scard.c	3 Jul 2007 14:20:04 -0000	1.24
***************
*** 1287,1294 ****
  				for (k = 0; k < cur->cbAtr; k++)
  				{
! 					/*  This line check if them equal */
! 					if (cur->rgbAtr[k] != rsCur->rgbAtr[k])
! 						/*  Next Line was make to search with mask (some strange behavours with applications which use eToken SmartCards) */
! 						/*  if((cur->rgbAtr[k]&cur->rgbMask[k])!=(rsCur->rgbAtr[k]&cur->rgbMask[k])){ */
  					{
  						equal = 0;
--- 1287,1292 ----
  				for (k = 0; k < cur->cbAtr; k++)
  				{
! 					if ((cur->rgbAtr[k] & cur->rgbMask[k]) !=
! 					    (rsCur->rgbAtr[k] & cur->rgbMask[k]))
  					{
  						equal = 0;


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/