summaryrefslogtreecommitdiff
path: root/lib/gnutls_session.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2003-11-21 09:37:03 +0000
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2003-11-21 09:37:03 +0000
commitec706eb620ea0eab2ffcbc3ea76e56877cc99865 (patch)
tree33cc7af380e1eb2651b5bc3abd83779eceb51179 /lib/gnutls_session.c
parent6771b1af3e43fdb8b28c23a393a33e152742dbb0 (diff)
downloadgnutls-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.c5
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();