Module: kamailio Branch: master Commit: 9d923764747ff36152fc930da66e972201516b7b URL: https://github.com/kamailio/kamailio/commit/9d923764747ff36152fc930da66e9722...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: 2024-07-08T12:08:13+02:00
core: basex - compute lenght for base58 decode
- GH #3907
---
Modified: src/core/basex.c
---
Diff: https://github.com/kamailio/kamailio/commit/9d923764747ff36152fc930da66e9722... Patch: https://github.com/kamailio/kamailio/commit/9d923764747ff36152fc930da66e9722...
---
diff --git a/src/core/basex.c b/src/core/basex.c index a112ce77adb..2871afa22ee 100644 --- a/src/core/basex.c +++ b/src/core/basex.c @@ -412,7 +412,7 @@ char *b58_decode(char *outb, int *outbszp, char *b58, int b58sz) break; --*outbszp; } - *outbszp += zerocount; + *outbszp = strlen(outb + i);
return outb + i; }