Assertion Failed 1.4.2

Aredeji 04 aredeji at hotmail.com
Thu Dec 1 18:14:29 CET 2005


I am trying to generate a key pair using the --batch option.
At first it worked but now I keep getting the following error:

gpg: Generating a standard key
++++++++++....++++++++++.+++++++++++++++..+++++..++++++++++++++++++++++++++++++++++++++++++++++++++.+++++.+++++..++++++++++++++++++++++++++++++.++
Assertion failed: pkt->pkt.generic, file build-packet.c, line 74

I tried using the following patch, but it did not work:

Index: keygen.c
===================================================================
--- keygen.c	(revision 3850)
+++ keygen.c	(working copy)
@@ -3243,15 +3243,21 @@
static int
write_keyblock( IOBUF out, KBNODE node )
{
-    for( ; node ; node = node->next ) {
-	int rc = build_packet( out, node->pkt );
-	if( rc ) {
-	    log_error("build_packet(%d) failed: %s\n",
+  for( ; node ; node = node->next )
+    {
+      if(!is_deleted_kbnode(node))
+	{
+	  int rc = build_packet( out, node->pkt );
+	  if( rc )
+	    {
+	      log_error("build_packet(%d) failed: %s\n",
			node->pkt->pkttype, g10_errstr(rc) );
-	    return G10ERR_WRITE_FILE;
+	      return G10ERR_WRITE_FILE;
+	    }
	}
     }
-    return 0;
+
+  return 0;
}

Please let me know how I can fix this problem.

Best wishes,
Ared

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/




More information about the Gnupg-users mailing list