Commit b3ca5155 authored by Dr. Stephen Henson's avatar Dr. Stephen Henson
Browse files

Typo: only return error if unrecognise bag type.

parent de812820
Loading
Loading
Loading
Loading
+1 −1
Changes for crypto/pkcs12/p12_sbag.c: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -107,7 +107,7 @@ int PKCS12_SAFEBAG_get_bag_nid(PKCS12_SAFEBAG *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 OBJ_obj2nid(bag->value.bag->type);
}