[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libeufin] branch master updated: nexus fetch: workaround #7980
From: |
gnunet |
Subject: |
[libeufin] branch master updated: nexus fetch: workaround #7980 |
Date: |
Wed, 15 Nov 2023 13:53:58 +0100 |
This is an automated email from the git hooks/post-receive script.
ms pushed a commit to branch master
in repository libeufin.
The following commit(s) were added to refs/heads/master by this push:
new 15a26b4d nexus fetch: workaround #7980
15a26b4d is described below
commit 15a26b4d9ef9a3ecf24d276b85f3f20197d142a9
Author: MS <ms@taler.net>
AuthorDate: Wed Nov 15 13:49:46 2023 +0100
nexus fetch: workaround #7980
---
nexus/src/main/kotlin/tech/libeufin/nexus/EbicsFetch.kt | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/nexus/src/main/kotlin/tech/libeufin/nexus/EbicsFetch.kt
b/nexus/src/main/kotlin/tech/libeufin/nexus/EbicsFetch.kt
index 6fdfdc1e..295f482a 100644
--- a/nexus/src/main/kotlin/tech/libeufin/nexus/EbicsFetch.kt
+++ b/nexus/src/main/kotlin/tech/libeufin/nexus/EbicsFetch.kt
@@ -296,6 +296,10 @@ fun findIncomingTxInNotification(
* @return [ByteArray] or null if not valid.
*/
fun isReservePub(maybeReservePub: String): ByteArray? {
+ if (maybeReservePub.length != 52) {
+ logger.error("Not a reserve pub, length (${maybeReservePub.length}) is
not 52")
+ return null
+ }
val dec = try {
Base32Crockford.decode(maybeReservePub)
} catch (e: EncodingException) {
@@ -303,6 +307,7 @@ fun isReservePub(maybeReservePub: String): ByteArray? {
return null
}
logger.debug("Reserve how many bytes: ${dec.size}")
+ // this check would only be effective after #7980
if (dec.size != 32) {
logger.error("Not a reserve pub, wrong length: ${dec.size}")
return null
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [libeufin] branch master updated: nexus fetch: workaround #7980,
gnunet <=