Commit 6ea51121 authored by Dr. Stephen Henson's avatar Dr. Stephen Henson
Browse files

Only cleanse sbuf if it is not NULL.

PR#2339
parent 114216bc
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -288,8 +288,11 @@ int FIPS_rsa_sign_digest(RSA *rsa, const unsigned char *md, int md_len,
			*siglen=j;
			}
		psserr:
		if (sbuf)
			{
			OPENSSL_cleanse(sbuf, i);
			OPENSSL_free(sbuf);
			}
		return ret;
		}