gnupg 1.9.12 fix
Barry.Schwartz at chemoelectric.org
Barry.Schwartz at chemoelectric.org
Mon Nov 22 12:49:42 CET 2004
I had a little segmentation violation problem with gpg-agent in the
gnupg-1.9.12 package. Here's the fix I used, hoping I'm not
duplicating someone else's work or making a mistake:
--- gnupg-1.9.12.ORIG/jnlib/logging.c 2004-10-21 19:00:25.000000000 +0000
+++ gnupg-1.9.12/jnlib/logging.c 2004-11-22 11:41:01.029095930 +0000
@@ -411,9 +411,12 @@
int
log_test_fd (int fd)
{
- int tmp = fileno (logstream);
- if ( tmp != -1 && tmp == fd)
- return 1;
+ if (logstream != NULL)
+ {
+ int tmp = fileno (logstream);
+ if ( tmp != -1 && tmp == fd)
+ return 1;
+ }
if (log_socket != -1 && log_socket == fd)
return 1;
return 0;
More information about the Gnupg-devel
mailing list