summaryrefslogtreecommitdiffstats
path: root/g10/keyserver.c
diff options
context:
space:
mode:
authorDavid Shaw <dshaw@jabberwocky.com>2005-04-17 06:10:03 +0200
committerDavid Shaw <dshaw@jabberwocky.com>2005-04-17 06:10:03 +0200
commitb7c3018d32a6512b3b80e916b160f51514d5fd55 (patch)
treeff1be3af3407a5a572cf3cc174af07e039da17ba /g10/keyserver.c
parent* gpgkeys_hkp.c: New hkp handler that uses curl or curl-shim. (diff)
downloadgnupg2-b7c3018d32a6512b3b80e916b160f51514d5fd55.tar.xz
gnupg2-b7c3018d32a6512b3b80e916b160f51514d5fd55.zip
* keyserver.c (keyserver_spawn): Free some memory.
* sign.c (hash_for): Comments.
Diffstat (limited to 'g10/keyserver.c')
-rw-r--r--g10/keyserver.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/g10/keyserver.c b/g10/keyserver.c
index a4db688b9..90013f990 100644
--- a/g10/keyserver.c
+++ b/g10/keyserver.c
@@ -800,6 +800,14 @@ keyserver_search_prompt(IOBUF buffer,const char *searchstr)
}
notfound:
+ /* Leave this commented out or now, and perhaps for a very long
+ time. All HKPish servers return HTML error messages for
+ no-key-found. */
+ /*
+ if(!started)
+ log_info(_("keyserver does not support searching\n"));
+ else
+ */
if(count==0)
{
if(localstr)
@@ -851,7 +859,7 @@ keyserver_spawn(int action,STRLIST list,KEYDB_SEARCH_DESC *desc,
int ret=0,i,gotversion=0,outofband=0;
STRLIST temp;
unsigned int maxlen,buflen;
- char *command=NULL,*searchstr=NULL;
+ char *command,*searchstr=NULL;
byte *line=NULL;
struct parse_options *kopts;
struct exec_info *spawn;
@@ -920,6 +928,8 @@ keyserver_spawn(int action,STRLIST list,KEYDB_SEARCH_DESC *desc,
else
ret=exec_write(&spawn,command,NULL,NULL,0,0);
+ m_free(command);
+
if(ret)
return ret;