forked from wolfSSL/wolfssl
fix for clang-tidy null dereference error
This commit is contained in:
@@ -15400,7 +15400,9 @@ word32 SetLength(word32 length, byte* output)
|
|||||||
word32 SetLengthEx(word32 length, byte* output, byte isIndef)
|
word32 SetLengthEx(word32 length, byte* output, byte isIndef)
|
||||||
{
|
{
|
||||||
if (isIndef) {
|
if (isIndef) {
|
||||||
output[0] = ASN_INDEF_LENGTH;
|
if (output != NULL) {
|
||||||
|
output[0] = ASN_INDEF_LENGTH;
|
||||||
|
}
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
Reference in New Issue
Block a user