summaryrefslogtreecommitdiff
path: root/doc/cha-internals.texi
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2015-04-15 20:05:59 +0300
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2015-04-15 20:05:59 +0300
commit0ce796c5e2964678ec7a47fb790ea993a7c306b9 (patch)
tree60e7f73d612eeefd9156fd1402c32e711fbffb06 /doc/cha-internals.texi
parentf41c60649ddc1811592c8d18ac0adf145db7cf5c (diff)
downloadgnutls-0ce796c5e2964678ec7a47fb790ea993a7c306b9.tar.gz
doc: added error check in example
Diffstat (limited to 'doc/cha-internals.texi')
-rw-r--r--doc/cha-internals.texi3
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/cha-internals.texi b/doc/cha-internals.texi
index 9dc6fbd22c..daf5f362d3 100644
--- a/doc/cha-internals.texi
+++ b/doc/cha-internals.texi
@@ -418,7 +418,8 @@ _foobar_supp_send_params(gnutls_session_t session, gnutls_buffer_t buf)
unsigned char *msg = "hello world";
int len = strlen(msg);
- gnutls_buffer_append_data(buf, msg, len);
+ if (gnutls_buffer_append_data(buf, msg, len) < 0)
+ abort();
return len;
@}