summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2011-08-30 15:44:53 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2011-08-30 15:44:53 +0200
commit51a2e5f73c0d211a8a5243cd6d84451f26b39837 (patch)
tree97be9238c8f4a3a7bb2e87755a9dc176a09af323
parentf98518f0198da3306cdcc49545f34bb83849ce03 (diff)
downloadgnutls-51a2e5f73c0d211a8a5243cd6d84451f26b39837.tar.gz
Corrected error checking in _gnutls_send_int().
-rw-r--r--lib/gnutls_record.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gnutls_record.c b/lib/gnutls_record.c
index c0806ab703..2998530bcc 100644
--- a/lib/gnutls_record.c
+++ b/lib/gnutls_record.c
@@ -348,7 +348,7 @@ _gnutls_send_int (gnutls_session_t session, content_type_t type,
size_t data_size, unsigned int mflags)
{
mbuffer_st *bufel;
- size_t cipher_size;
+ ssize_t cipher_size;
int retval, ret;
int data2send_size;
uint8_t headers[MAX_RECORD_HEADER_SIZE];