diff options
| author | David M. Syzdek <david@syzdek.net> | 2022-09-12 22:53:33 -0800 |
|---|---|---|
| committer | David M. Syzdek <david@syzdek.net> | 2022-09-12 22:53:33 -0800 |
| commit | 126a3e1d909a7a9e6ef2f5b5e0c2fe550bf85fe0 (patch) | |
| tree | b4d5ac7ab77d502828109384ceb42da3fea4e807 | |
| parent | a8b3e107e30f63fcee24d687946af34fd9d84c19 (diff) | |
| download | bindletools-126a3e1d909a7a9e6ef2f5b5e0c2fe550bf85fe0.tar.gz bindletools-126a3e1d909a7a9e6ef2f5b5e0c2fe550bf85fe0.tar.bz2 bindletools-126a3e1d909a7a9e6ef2f5b5e0c2fe550bf85fe0.tar.xz bindletools-126a3e1d909a7a9e6ef2f5b5e0c2fe550bf85fe0.zip | |
libbindle: adding error code to bindle_base32_decode()
| -rw-r--r-- | lib/libbindle/lencoding.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libbindle/lencoding.c b/lib/libbindle/lencoding.c index 62c5a77..b1db149 100644 --- a/lib/libbindle/lencoding.c +++ b/lib/libbindle/lencoding.c | |||
| @@ -370,7 +370,10 @@ bindle_base32_decode( | |||
| 370 | 370 | ||
| 371 | // verifies encoded data contains only valid characters | 371 | // verifies encoded data contains only valid characters |
| 372 | if ((rc = bindle_base32_verify(map, (const char *)src, n)) == -1) | 372 | if ((rc = bindle_base32_verify(map, (const char *)src, n)) == -1) |
| 373 | { | ||
| 374 | errno = EBADMSG; | ||
| 373 | return(-1); | 375 | return(-1); |
| 376 | }; | ||
| 374 | if ( (rc > (ssize_t)s) && ((dst)) ) | 377 | if ( (rc > (ssize_t)s) && ((dst)) ) |
| 375 | { | 378 | { |
| 376 | errno = ENOBUFS; | 379 | errno = ENOBUFS; |
