Module: kamailio
Branch: master
Commit: 8a9161b321035d805083316d3eb707c6c1b56652
URL:
https://github.com/kamailio/kamailio/commit/8a9161b321035d805083316d3eb707c…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2019-02-26T12:08:18+01:00
core: return the correct position in out buffer for decode base58
- GH #1868
---
Modified: src/core/basex.c
---
Diff:
https://github.com/kamailio/kamailio/commit/8a9161b321035d805083316d3eb707c…
Patch:
https://github.com/kamailio/kamailio/commit/8a9161b321035d805083316d3eb707c…
---
diff --git a/src/core/basex.c b/src/core/basex.c
index d3e0e3402b..592ea0cd96 100644
--- a/src/core/basex.c
+++ b/src/core/basex.c
@@ -336,7 +336,7 @@ char* b58_decode(char *outb, int *outbszp, char *b58, int b58sz)
}
*outbszp += zerocount;
- return outb + outbsz - (*outbszp);
+ return outb + i;
}
/**