diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2004-01-06 20:36:18 +0000 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2004-01-06 20:36:18 +0000 |
commit | 22a8db8a5ec20001742af1a00acd970665dceeaf (patch) | |
tree | cb54ad43fe625106004248eea2aa6a24eb0b9ff0 /lib/x509_b64.c | |
parent | 1db0788f59187bd5fa1676ddd1e22a3ad94e7df4 (diff) | |
download | gnutls-22a8db8a5ec20001742af1a00acd970665dceeaf.tar.gz |
Several bug fixes and cleanups by Arne Thomassen.
Diffstat (limited to 'lib/x509_b64.c')
-rw-r--r-- | lib/x509_b64.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/x509_b64.c b/lib/x509_b64.c index 9b233af614..234ca13c1a 100644 --- a/lib/x509_b64.c +++ b/lib/x509_b64.c @@ -164,12 +164,14 @@ int _gnutls_base64_encode(const uint8 * data, size_t data_size, uint8 ** result) } #define INCR(what, size) \ + do { \ what+=size; \ if (what > ret) { \ gnutls_assert(); \ gnutls_free( (*result)); *result = NULL; \ return GNUTLS_E_INTERNAL_ERROR; \ - } + } \ + } while(0) /* encodes data and puts the result into result (locally allocated) * The result_size (including the null terminator) is the return value. |