]> git.ipfire.org Git - thirdparty/openssl.git/blobdiff - crypto/property/property_parse.c
property: create property names more eagerly.
[thirdparty/openssl.git] / crypto / property / property_parse.c
index a41d6331b1595d4ea8cb43bfcb3e1cc8c320dd58..dfae76518f1b35d0e0445a10718f1606c892661b 100644 (file)
@@ -407,12 +407,12 @@ OSSL_PROPERTY_LIST *ossl_parse_query(OSSL_LIB_CTX *ctx, const char *s,
         if (match_ch(&s, '-')) {
             prop->oper = PROPERTY_OVERRIDE;
             prop->optional = 0;
-            if (!parse_name(ctx, &s, 0, &prop->name_idx))
+            if (!parse_name(ctx, &s, 1, &prop->name_idx))
                 goto err;
             goto skip_value;
         }
         prop->optional = match_ch(&s, '?');
-        if (!parse_name(ctx, &s, 0, &prop->name_idx))
+        if (!parse_name(ctx, &s, 1, &prop->name_idx))
             goto err;
 
         if (match_ch(&s, '=')) {