[svn] GpgOL - r200 - trunk/src

svn author wk cvs at cvs.gnupg.org
Tue Nov 13 10:09:26 CET 2007


Author: wk
Date: 2007-11-13 10:09:17 +0100 (Tue, 13 Nov 2007)
New Revision: 200

Modified:
   trunk/src/engine-assuan.c
Log:
Fixed prep_encrypt


Modified: trunk/src/engine-assuan.c
===================================================================
--- trunk/src/engine-assuan.c	2007-11-12 14:32:45 UTC (rev 199)
+++ trunk/src/engine-assuan.c	2007-11-13 09:09:17 UTC (rev 200)
@@ -1291,9 +1291,9 @@
     {
       for (line += 8; *line == ' '; line++)
         ;
-      if (strncmp (line, "OpenPGP", 7) && (line[7]==' '||!line[7]))
+      if (!strncmp (line, "OpenPGP", 7) && (line[7]==' '||!line[7]))
         *protocol = PROTOCOL_OPENPGP;
-      else if (strncmp (line, "CMS", 3) && (line[3]==' '||!line[3]))
+      else if (!strncmp (line, "CMS", 3) && (line[3]==' '||!line[3]))
         *protocol = PROTOCOL_SMIME;
     }
   return 0;




More information about the Gnupg-commits mailing list