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:
parent
8ce53a679a
commit
26f00196b3
@ -1,5 +1,8 @@
|
|||||||
2002-06-12 David Shaw <dshaw@jabberwocky.com>
|
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.c (keyserver_spawn): Handle CRLF endings from
|
||||||
keyserver helpers. Also don't leak the last line worth of memory
|
keyserver helpers. Also don't leak the last line worth of memory
|
||||||
from the keyserver response.
|
from the keyserver response.
|
||||||
|
@ -523,8 +523,7 @@ keyserver_spawn(int action,STRLIST list,
|
|||||||
}
|
}
|
||||||
else if(ascii_memcasecmp(ptr,"PROGRAM ",8)==0)
|
else if(ascii_memcasecmp(ptr,"PROGRAM ",8)==0)
|
||||||
{
|
{
|
||||||
ptr[strlen(ptr)-1]='\0';
|
if(ascii_memcasecmp(&ptr[8],VERSION,strlen(VERSION))!=0)
|
||||||
if(ascii_strcasecmp(&ptr[8],VERSION)!=0)
|
|
||||||
log_info(_("Warning: keyserver handler from a different "
|
log_info(_("Warning: keyserver handler from a different "
|
||||||
"version of GnuPG (%s)\n"),&ptr[8]);
|
"version of GnuPG (%s)\n"),&ptr[8]);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user