The unified diff between revisions [f52979b5..] and [372a601d..] is displayed below. It can also be downloaded as a raw diff.
#
#
# patch "src/x509stat.cpp"
# from [ad0ea0d4cc9ef4a1aa9ae278b80ffce29d47f237]
# to [79c2f290a7676dd7fd0fa19583ee7c089962e57c]
#
============================================================
--- src/x509stat.cpp ad0ea0d4cc9ef4a1aa9ae278b80ffce29d47f237
+++ src/x509stat.cpp 79c2f290a7676dd7fd0fa19583ee7c089962e57c
@@ -23,10 +23,14 @@ Certificate_Extension* X509_GlobalState:
*************************************************/
Certificate_Extension* X509_GlobalState::get_extension(const OID& oid) const
{
- Certificate_Extension* extension = 0;
- for(u32bit j = 0; j != prototypes.size() && !extension; ++j)
- extension = prototypes[j]->make(oid);
- return extension;
+ for(u32bit j = 0; j != prototypes.size(); ++j)
+ {
+ Certificate_Extension* extension = prototypes[j]->make(oid);
+ if(extension)
+ return extension;
+ }
+
+ return 0;
}
/*************************************************
@@ -34,7 +38,6 @@ X509_GlobalState::X509_GlobalState()
*************************************************/
X509_GlobalState::X509_GlobalState()
{
-
#define CREATE_PROTOTYPE(NAME, TYPE) \
do { \
struct TYPE ## _Prototype : public Extension_Prototype \