projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Avoid signed vs. unsigned warnings (which are treated like errors on
[openssl.git]
/
crypto
/
asn1
/
tasn_new.c
diff --git
a/crypto/asn1/tasn_new.c
b/crypto/asn1/tasn_new.c
index 11a90f739edce0f7b3e6ea084cf19066f33a3dfa..6a76a96ba9ceb92c12eebab1696bfa28cce75bb7 100644
(file)
--- a/
crypto/asn1/tasn_new.c
+++ b/
crypto/asn1/tasn_new.c
@@
-307,7
+307,10
@@
int ASN1_primitive_new(ASN1_VALUE **pval, const ASN1_ITEM *it)
return 1;
case V_ASN1_BOOLEAN:
- *(ASN1_BOOLEAN *)pval = it->size;
+ if (it)
+ *(ASN1_BOOLEAN *)pval = it->size;
+ else
+ *(ASN1_BOOLEAN *)pval = -1;
return 1;
case V_ASN1_NULL: