diff options
author | Simon Josefsson <simon@josefsson.org> | 2009-01-13 14:33:31 +0100 |
---|---|---|
committer | Simon Josefsson <simon@josefsson.org> | 2009-01-13 14:33:31 +0100 |
commit | f181d6aee1dca3cbf58ebe96b548c692d659cfd7 (patch) | |
tree | 6f0ab0fb7be974819d56071b03e57a6ac51690ea /lib | |
parent | ca5739968c1397be9d4e454f52d7cd3378d5c87b (diff) | |
download | gnutls-f181d6aee1dca3cbf58ebe96b548c692d659cfd7.tar.gz |
Check return value properly.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gnutls_state.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/gnutls_state.c b/lib/gnutls_state.c index e4934b5632..30e8fe60d9 100644 --- a/lib/gnutls_state.c +++ b/lib/gnutls_state.c @@ -313,9 +313,8 @@ gnutls_init (gnutls_session_t * session, gnutls_connection_end_t con_end) * This is allocated in order to avoid small messages, making * the receive procedure slow. */ - _gnutls_buffer_resize (&(*session)->internals.record_recv_buffer, - INITIAL_RECV_BUFFER_SIZE); - if ((*session)->internals.record_recv_buffer.data == NULL) + if (_gnutls_buffer_resize (&(*session)->internals.record_recv_buffer, + INITIAL_RECV_BUFFER_SIZE)) { gnutls_free ((*session)->key); goto cleanup_session; |