diff options
author | Stefan Bellon <[email protected]> | 2004-08-27 21:16:16 +0000 |
---|---|---|
committer | Stefan Bellon <[email protected]> | 2004-08-27 21:16:16 +0000 |
commit | 159352d8b7070014e7468a54208e13e9d40c5dac (patch) | |
tree | be375812fc215c51d097cd54cd597edb67e1af66 | |
parent | fix type incompatibility (diff) | |
download | gnupg-159352d8b7070014e7468a54208e13e9d40c5dac.tar.gz gnupg-159352d8b7070014e7468a54208e13e9d40c5dac.zip |
change back skey to unsigned and cast instead
-rw-r--r-- | keyserver/ChangeLog | 5 | ||||
-rw-r--r-- | keyserver/gpgkeys_hkp.c | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/keyserver/ChangeLog b/keyserver/ChangeLog index 1636a8c93..37dfa91cb 100644 --- a/keyserver/ChangeLog +++ b/keyserver/ChangeLog @@ -1,4 +1,7 @@ -2004-08-27 Stefan Bellon <sbellon@roma> +2004-08-27 Stefan Bellon <[email protected]> + + * 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. diff --git a/keyserver/gpgkeys_hkp.c b/keyserver/gpgkeys_hkp.c index 63e851780..a8457a598 100644 --- a/keyserver/gpgkeys_hkp.c +++ b/keyserver/gpgkeys_hkp.c @@ -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); |