1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-02 22:46:30 +02:00

* keyserver.c (keyserver_spawn): Free some memory.

* sign.c (hash_for): Comments.
This commit is contained in:
David Shaw 2005-04-17 04:10:03 +00:00
parent 0884653a13
commit b7c3018d32
3 changed files with 31 additions and 1 deletions

View file

@ -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;