View | Details | Raw Unified | Return to bug 242861 | Differences between
and this patch

Collapse All | Expand All

(-)contrib/sendmail/src/tls.c (-7 / +19 lines)
Lines 748-761 Link Here
748
	int rc;
748
	int rc;
749
749
750
	bn_rsa_r4 = BN_new();
750
	bn_rsa_r4 = BN_new();
751
        rc = BN_set_word(bn_rsa_r4, RSA_F4);
751
	if (bn_rsa_r4 == NULL)
752
	if ((bn_rsa_r4 != NULL) && BN_set_word(bn_rsa_r4, RSA_F4) && (rsa = RSA_new()) != NULL)
753
	{
752
	{
754
		if (!RSA_generate_key_ex(rsa, RSA_KEYLENGTH, bn_rsa_r4, NULL))
753
		return NULL;
755
		{
754
	}
756
			RSA_free(rsa);
755
        rc = BN_set_word(bn_rsa_r4, e);
757
			rsa = NULL;
756
	if (BN_set_word == 0)
758
		}
757
	{
758
		BN_free(bn_rsa_r4);
759
		return NULL;
760
	}
761
	rsa = RSA_new();
762
	if (rsa == NULL)
763
	{
764
		BN_free(bn_rsa_r4);
765
		return NULL;
766
	}
767
	if (!RSA_generate_key_ex(rsa, num, bn_rsa_r4, NULL))
768
	{
769
		BN_free(bn_rsa_r4);
770
		RSA_free(rsa);
759
		return NULL;
771
		return NULL;
760
	}
772
	}
761
	BN_free(bn_rsa_r4);
773
	BN_free(bn_rsa_r4);

Return to bug 242861