mirror of
https://github.com/QuasarApp/openssl.git
synced 2025-05-14 10:29:42 +00:00
Typo: only return error if unrecognise bag type.
Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
This commit is contained in:
parent
de8128203a
commit
b3ca51559b
@ -107,7 +107,7 @@ int PKCS12_SAFEBAG_get_bag_nid(PKCS12_SAFEBAG *bag)
|
|||||||
{
|
{
|
||||||
int btype = PKCS12_SAFEBAG_get_nid(bag);
|
int btype = PKCS12_SAFEBAG_get_nid(bag);
|
||||||
|
|
||||||
if (btype != NID_certBag || btype != NID_crlBag || btype != NID_secretBag)
|
if (btype != NID_certBag && btype != NID_crlBag && btype != NID_secretBag)
|
||||||
return -1;
|
return -1;
|
||||||
return OBJ_obj2nid(bag->value.bag->type);
|
return OBJ_obj2nid(bag->value.bag->type);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user