enforce syntax of reserve_uri (typo)

This commit is contained in:
Christian Grothoff 2022-08-23 14:36:23 +02:00
parent b231cc94df
commit f9774ded37
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC

View File

@ -1023,9 +1023,9 @@ TALER_wallet_purse_merge_sign (
};
GNUNET_assert (0 ==
strcasecmp (reserve_uri,
"payto://taler-reserve",
strlen ("payto://taler-reserve")));
strncasecmp (reserve_uri,
"payto://taler-reserve",
strlen ("payto://taler-reserve")));
TALER_payto_hash (reserve_uri,
&pm.h_payto);
GNUNET_CRYPTO_eddsa_sign (&merge_priv->eddsa_priv,
@ -1050,9 +1050,9 @@ TALER_wallet_purse_merge_verify (
};
if (0 !=
strcasecmp (reserve_uri,
"payto://taler-reserve",
strlen ("payto://taler-reserve")))
strncasecmp (reserve_uri,
"payto://taler-reserve",
strlen ("payto://taler-reserve")))
{
GNUNET_break (0);
return GNUNET_NO;