1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-23 10:29:58 +01:00

* keyserver.c (keyserver_spawn): Properly handle PROGRAM responses when

they have a CRLF ending.  Noted by Keith Ray.
This commit is contained in:
David Shaw 2002-06-12 20:53:00 +00:00
parent 8ce53a679a
commit 26f00196b3
2 changed files with 4 additions and 2 deletions

View File

@ -1,5 +1,8 @@
2002-06-12 David Shaw <dshaw@jabberwocky.com>
* keyserver.c (keyserver_spawn): Properly handle PROGRAM responses
when they have a CRLF ending. Noted by Keith Ray.
* keyserver.c (keyserver_spawn): Handle CRLF endings from
keyserver helpers. Also don't leak the last line worth of memory
from the keyserver response.

View File

@ -523,8 +523,7 @@ keyserver_spawn(int action,STRLIST list,
}
else if(ascii_memcasecmp(ptr,"PROGRAM ",8)==0)
{
ptr[strlen(ptr)-1]='\0';
if(ascii_strcasecmp(&ptr[8],VERSION)!=0)
if(ascii_memcasecmp(&ptr[8],VERSION,strlen(VERSION))!=0)
log_info(_("Warning: keyserver handler from a different "
"version of GnuPG (%s)\n"),&ptr[8]);
}