diff options
Diffstat (limited to 'src/lib/libcrypto/asn1/t_bitst.c')
-rw-r--r-- | src/lib/libcrypto/asn1/t_bitst.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/libcrypto/asn1/t_bitst.c b/src/lib/libcrypto/asn1/t_bitst.c index 8ee789f082..397332d9b8 100644 --- a/src/lib/libcrypto/asn1/t_bitst.c +++ b/src/lib/libcrypto/asn1/t_bitst.c | |||
@@ -84,7 +84,10 @@ int ASN1_BIT_STRING_set_asc(ASN1_BIT_STRING *bs, char *name, int value, | |||
84 | int bitnum; | 84 | int bitnum; |
85 | bitnum = ASN1_BIT_STRING_num_asc(name, tbl); | 85 | bitnum = ASN1_BIT_STRING_num_asc(name, tbl); |
86 | if(bitnum < 0) return 0; | 86 | if(bitnum < 0) return 0; |
87 | if(bs) ASN1_BIT_STRING_set_bit(bs, bitnum, value); | 87 | if(bs) { |
88 | if(!ASN1_BIT_STRING_set_bit(bs, bitnum, value)) | ||
89 | return 0; | ||
90 | } | ||
88 | return 1; | 91 | return 1; |
89 | } | 92 | } |
90 | 93 | ||