projects
/
oweals
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
simplify asn1_flag
[oweals/openssl.git]
/
crypto
/
x509
/
x509name.c
diff --git
a/crypto/x509/x509name.c
b/crypto/x509/x509name.c
index cf2382d42c0f0737d43c1e49dfe6b0feb3d3ada2..4c20e03eced3a6f3565ff8da26aa53ba62e3bce5 100644
(file)
--- a/
crypto/x509/x509name.c
+++ b/
crypto/x509/x509name.c
@@
-352,7
+352,7
@@
int X509_NAME_ENTRY_set_data(X509_NAME_ENTRY *ne, int type,
int i;
if ((ne == NULL) || ((bytes == NULL) && (len != 0))) return(0);
- if(
type & MBSTRING_FLAG
)
+ if(
(type > 0) && (type & MBSTRING_FLAG)
)
return ASN1_STRING_set_by_NID(&ne->value, bytes,
len, type,
OBJ_obj2nid(ne->object)) ? 1 : 0;