summaryrefslogtreecommitdiff
path: root/lib/gnutls_compress_int.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2004-06-04 13:24:18 +0000
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2004-06-04 13:24:18 +0000
commit0967470bf44d67ca43cb958f55c8d0685f2add1e (patch)
tree77dce09f12e5681993b05521ccb2a293d60e34af /lib/gnutls_compress_int.c
parent023322da75b4c46f5361de32b11f3967cf736d1b (diff)
downloadgnutls-0967470bf44d67ca43cb958f55c8d0685f2add1e.tar.gz
added function to access the DH (peer's) public key.
Diffstat (limited to 'lib/gnutls_compress_int.c')
-rw-r--r--lib/gnutls_compress_int.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/gnutls_compress_int.c b/lib/gnutls_compress_int.c
index 2b83f92d4d..87ac63b895 100644
--- a/lib/gnutls_compress_int.c
+++ b/lib/gnutls_compress_int.c
@@ -114,6 +114,9 @@ int err;
break;
#endif
+ default:
+ gnutls_free(ret);
+ return NULL;
}
return ret;
}
@@ -123,8 +126,6 @@ int err;
if (handle!=NULL) {
switch( handle->algo) {
- /* case GNUTLS_COMP_LZO:
- break; */
#ifdef HAVE_LIBZ
case GNUTLS_COMP_DEFLATE:
if (d)
@@ -133,6 +134,8 @@ int err;
err = deflateEnd( handle->handle);
break;
#endif
+ default:
+ break;
}
gnutls_free( handle->handle);
gnutls_free( handle);