]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
Corrected error checking in _gnutls_send_int().
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Tue, 30 Aug 2011 13:44:53 +0000 (15:44 +0200)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Tue, 30 Aug 2011 13:44:53 +0000 (15:44 +0200)
lib/gnutls_record.c

index c0806ab703980fa123e9e0e21fed1730dee0a049..2998530bccc4dce7b742635ef56a946d2cf5c299 100644 (file)
@@ -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];