diff options
| -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 8978f61..b3a7a4a 100644 --- a/lib/libbindle/lencoding.c +++ b/lib/libbindle/lencoding.c | |||
| @@ -982,7 +982,10 @@ bindle_pctenc_decode( | |||
| 982 | 982 | ||
| 983 | // verifies encoded data contains only valid characters | 983 | // verifies encoded data contains only valid characters |
| 984 | if ((rc = bindle_pctenc_verify((const char *)src, n)) == -1) | 984 | if ((rc = bindle_pctenc_verify((const char *)src, n)) == -1) |
| 985 | { | ||
| 986 | errno = EBADMSG; | ||
| 985 | return(-1); | 987 | return(-1); |
| 988 | }; | ||
| 986 | if ( (rc >= ((ssize_t)s-1)) && ((dst)) ) | 989 | if ( (rc >= ((ssize_t)s-1)) && ((dst)) ) |
| 987 | { | 990 | { |
| 988 | errno = ENOBUFS; | 991 | errno = ENOBUFS; |
