diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2003-11-21 09:37:03 +0000 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2003-11-21 09:37:03 +0000 |
commit | ec706eb620ea0eab2ffcbc3ea76e56877cc99865 (patch) | |
tree | 33cc7af380e1eb2651b5bc3abd83779eceb51179 /lib/gnutls_session.c | |
parent | 6771b1af3e43fdb8b28c23a393a33e152742dbb0 (diff) | |
download | gnutls-ec706eb620ea0eab2ffcbc3ea76e56877cc99865.tar.gz |
Some fixes pointed out by Dimitri Papadopoulos-Orfanos <papadopo@shfj.cea.fr>
Diffstat (limited to 'lib/gnutls_session.c')
-rw-r--r-- | lib/gnutls_session.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/gnutls_session.c b/lib/gnutls_session.c index e897afba5e..2c44748431 100644 --- a/lib/gnutls_session.c +++ b/lib/gnutls_session.c @@ -119,7 +119,10 @@ int gnutls_session_set_data( gnutls_session session, const void* session_data, size_t session_data_size) { int ret; - gnutls_datum psession = { (opaque*)session_data, session_data_size }; + gnutls_datum psession; + + psession.data = (opaque*)session_data; + psession.size = session_data_size; if (session_data==NULL || session_data_size == 0) { gnutls_assert(); |