comparison lib-src/gnuserv.c @ 460:223736d75acb r21-2-45

Import from CVS: tag r21-2-45
author cvs
date Mon, 13 Aug 2007 11:43:24 +0200
parents c33ae14dd6d0
children 0784d089fdc9
comparison
equal deleted inserted replaced
459:9d4fd877b885 460:223736d75acb
456 struct entry *entry; 456 struct entry *entry;
457 457
458 char auth_protocol[128]; 458 char auth_protocol[128];
459 char buf[1024]; 459 char buf[1024];
460 int auth_data_len; 460 int auth_data_len;
461 int auth_data_pos;
462 int auth_mismatches;
463 461
464 if (fd > 0) 462 if (fd > 0)
465 { 463 {
466 /* we are checking permission on a real connection */ 464 /* we are checking permission on a real connection */
467 465
503 #ifdef AUTH_MAGIC_COOKIE 501 #ifdef AUTH_MAGIC_COOKIE
504 if (server_xauth && server_xauth->data) 502 if (server_xauth && server_xauth->data)
505 { 503 {
506 /* Do a compare without comprising info about 504 /* Do a compare without comprising info about
507 the size of the cookie */ 505 the size of the cookie */
508 auth_mismatches = 506 int auth_data_pos;
507 int auth_mismatches =
509 ( auth_data_len ^ 508 ( auth_data_len ^
510 server_xauth->data_length ); 509 server_xauth->data_length );
511 510
512 for(auth_data_pos=0; auth_data_pos < auth_data_len; ++auth_data_pos) 511 for(auth_data_pos=0; auth_data_pos < auth_data_len; ++auth_data_pos)
513 auth_mismatches |= 512 auth_mismatches |=