Correct error in processing of second component

Root nodes 0 and 1 may have up to 40 children (0 - 39), not 39 children
(0 - 38) as previously thought.

Signed-off-by: David Horstmann <david.horstmann@arm.com>
diff --git a/library/oid.c b/library/oid.c
index 996b541..06127c2 100644
--- a/library/oid.c
+++ b/library/oid.c
@@ -974,8 +974,8 @@
     if (component2 < 0) {
         return component2;
     }
-    if ((component1 < 2) && (component2 > 38)) {
-        /* Root nodes 0 and 1 may have up to 39 children */
+    if ((component1 < 2) && (component2 > 39)) {
+        /* Root nodes 0 and 1 may have up to 40 children, numbered 0-39 */
         return MBEDTLS_ERR_ASN1_INVALID_DATA;
     }
     if (str_ptr < str_bound && *str_ptr != '\0') {