Selaa lähdekoodia

[CTT] Fix loading revocation list

Signed-off-by: Jayanth Velusamy <jayanth.v@kalycito.com>
Jayanth Velusamy 4 vuotta sitten
vanhempi
commit
005135d945
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      examples/server_ctt.c

+ 1 - 1
examples/server_ctt.c

@@ -631,12 +631,12 @@ int main(int argc, char **argv) {
                              "Too many revocation lists");
                 return EXIT_FAILURE;
             }
+            revocationList[revocationListSize] = loadFile(argv[pos]);
             if(revocationList[revocationListSize].data == NULL) {
                 UA_LOG_FATAL(UA_Log_Stdout, UA_LOGCATEGORY_USERLAND,
                              "Unable to load revocationlist %s", argv[pos]);
                 return EXIT_FAILURE;
             }
-            revocationList[revocationListSize] = loadFile(argv[pos]);
             revocationListSize++;
             continue;
         }