change back skey to unsigned and cast instead
authorStefan Bellon <sbellon@sbellon.de>
Fri, 27 Aug 2004 21:16:16 +0000 (21:16 +0000)
committerStefan Bellon <sbellon@sbellon.de>
Fri, 27 Aug 2004 21:16:16 +0000 (21:16 +0000)
keyserver/ChangeLog
keyserver/gpgkeys_hkp.c

index 1636a8c..37dfa91 100644 (file)
@@ -1,4 +1,7 @@
-2004-08-27  Stefan Bellon  <sbellon@roma>
+2004-08-27  Stefan Bellon  <sbellon@sbellon.de>
+
+       * gpgkeys_hkp.c (search_key): Fix the prior faulty fix by
+       introducing a cast but leaving skey unsigned.
 
        * gpgkeys_hkp.c (search_key): Change type of variable skey from
        unsigned char* to char* to fix type incompatibility.
index 63e8517..a8457a5 100644 (file)
@@ -629,7 +629,7 @@ search_key(char *searchkey)
   int max=0,len=0,ret=KEYSERVER_INTERNAL_ERROR,rc;
   struct http_context hd;
   char *search=NULL,*request=NULL;
-  char *skey=searchkey;
+  unsigned char *skey=(unsigned char*) searchkey;
 
   fprintf(output,"SEARCH %s BEGIN\n",searchkey);