Bug in keyserver code: DOS line endings
Keith Ray
keith at nullify.org
Wed Jun 12 02:29:01 CEST 2002
I compiled the gpgkeys_ldap for win32 but I found a bug in the GnuPG keyserver
code. In keyserver.c line 493:
while(line[0]!='\n');
This does not work on a win32 build because gpgkeys ends its lines with "\r\n".
Changing this line to something like this might work:
while(line[0]!='\n' || line[1]!='\n');
or something like
#if defined (__MINGW32__) || defined (__CYGWIN32__)
while(line[0]!='\r' && line[1]!='\n');
#else
while(line[0]!='\n');
#endif
-- Keith
More information about the Gnupg-devel
mailing list