s/1/i/
authorWerner Koch <wk@gnupg.org>
Wed, 16 Jun 2004 09:15:21 +0000 (09:15 +0000)
committerWerner Koch <wk@gnupg.org>
Wed, 16 Jun 2004 09:15:21 +0000 (09:15 +0000)
g10/free-packet.c

index 195cf50..f8d86fe 100644 (file)
@@ -273,8 +273,8 @@ copy_secret_key( PKT_secret_key *d, PKT_secret_key *s )
     else {
        for(i=0; i < n; i++ )
           {
-            if (d->skey[1])
-              mpi_free (d->skey[1]);
+            if (d->skey[i])
+              mpi_free (d->skey[i]);
            d->skey[i] = mpi_copy( s->skey[i] );
           }
     }