aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/ffi/ffi.cpp
diff options
context:
space:
mode:
authorDaniel Wyatt <[email protected]>2017-04-26 11:19:05 -0400
committerDaniel Wyatt <[email protected]>2017-04-26 11:26:28 -0400
commite095f78432381666a0465755ff62ad6e70fa1c68 (patch)
tree658ab7e135417e4e3b23bb893f2853e4fb3fd94a /src/lib/ffi/ffi.cpp
parent3a560e25b2ab197e54935eb047090446be6c10f5 (diff)
Add explicit return to FFI botan_mp_to_str.
This way we know if the buffer is insufficient.
Diffstat (limited to 'src/lib/ffi/ffi.cpp')
-rw-r--r--src/lib/ffi/ffi.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/ffi/ffi.cpp b/src/lib/ffi/ffi.cpp
index e15594ca6..42b01be62 100644
--- a/src/lib/ffi/ffi.cpp
+++ b/src/lib/ffi/ffi.cpp
@@ -553,7 +553,7 @@ int botan_mp_to_str(const botan_mp_t mp, uint8_t digit_base, char* out, size_t*
std::vector<uint8_t> hex = Botan::BigInt::encode(bn, base);
hex.push_back(0); // null terminator
- write_str_output(out, out_len, hex);
+ return write_str_output(out, out_len, hex);
});
}