X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=lib-src%2Fgnuserv.c;h=0c8cf22dc40253cc66059e2a94cb50f14a2ba92e;hb=ccce6217f84987dff10ed3d2b60b9f0f65d8f25a;hp=3cf78c43a67d3bebfda26ce311957c0d6954aab3;hpb=1cc5b779cb8755e01e02aead4fba711c06158b90;p=chise%2Fxemacs-chise.git.1 diff --git a/lib-src/gnuserv.c b/lib-src/gnuserv.c index 3cf78c4..0c8cf22 100644 --- a/lib-src/gnuserv.c +++ b/lib-src/gnuserv.c @@ -490,7 +490,7 @@ permitted (unsigned long host_addr, int fd) auth_data_len = atoi(buf); - if (auth_data_len <= 0 || auth_data_len > sizeof(buf)) + if (auth_data_len <= 0 || auth_data_len > (int) sizeof(buf)) { return FALSE; } @@ -500,7 +500,7 @@ permitted (unsigned long host_addr, int fd) #ifdef AUTH_MAGIC_COOKIE if (server_xauth && server_xauth->data) - { + { /* Do a compare without comprising info about the size of the cookie */ int auth_data_pos; @@ -517,7 +517,7 @@ permitted (unsigned long host_addr, int fd) return TRUE; for(;rand() % 1000;); - } + } #else printf ("client tried Xauth, but server is not compiled with Xauth\n"); @@ -597,6 +597,7 @@ setup_table (void) char hostname[HOSTNAMSZ]; unsigned int host_addr; int i, hosts=0; + int t; /* Make sure every entry is null */ for (i=0; i