Remove duplicate lines.
authorDr. Stephen Henson <steve@openssl.org>
Sun, 12 Dec 2004 13:18:23 +0000 (13:18 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Sun, 12 Dec 2004 13:18:23 +0000 (13:18 +0000)
crypto/asn1/a_bitstr.c
crypto/asn1/a_utctm.c
crypto/asn1/x_pubkey.c

index 01ec898314618c15034ed59b4e4ea974557cb77a..b81bf4fc81a90274d67cbccd56a60b0103d1fa5b 100644 (file)
@@ -200,7 +200,6 @@ int ASN1_BIT_STRING_set_bit(ASN1_BIT_STRING *a, int n, int value)
                        return 0;
                        }
                if (w+1-a->length > 0) memset(c+a->length, 0, w+1-a->length);
-               if (w+1-a->length > 0) memset(c+a->length, 0, w+1-a->length);
                a->data=c;
                a->length=w+1;
        }
index b91291c4cb9c6ac99d25aa704b22b1eea3452319..7b25fed331c08e4c4df3deb5f495c4ac35e4e080 100644 (file)
@@ -209,7 +209,6 @@ ASN1_UTCTIME *ASN1_UTCTIME_set(ASN1_UTCTIME *s, time_t t)
                        ASN1err(ASN1_F_ASN1_UTCTIME_SET,ERR_R_MALLOC_FAILURE);
                        return(NULL);
                        }
-               if (s->data != NULL)
                if (s->data != NULL)
                        OPENSSL_free(s->data);
                s->data=(unsigned char *)p;
index 61e8d54f9c271d28a96b7a28f9911e9c964fedc7..7d6d71af88de0396c13a7b9c21604a0c4218286e 100644 (file)
@@ -171,7 +171,6 @@ int X509_PUBKEY_set(X509_PUBKEY **x, EVP_PKEY *pkey)
                X509err(X509_F_X509_PUBKEY_SET,ERR_R_MALLOC_FAILURE);
                goto err;
                }
-       /* Set number of unused bits to zero */
        /* Set number of unused bits to zero */
        pk->public_key->flags&= ~(ASN1_STRING_FLAG_BITS_LEFT|0x07);
        pk->public_key->flags|=ASN1_STRING_FLAG_BITS_LEFT;