typo in assignment

Marcus Meissner meissner at suse.de
Thu Feb 10 16:40:42 CET 2011


Hi,

gnutls 2.8.6, lib/gnutls_state.c, around line 200:

  session->internals.proposed_record_size = DEFAULT_MAX_RECORD_SIZE;
  session->internals.adv_version_major = 0;
  session->internals.adv_version_minor = 0;
  session->internals.v2_hello = 0;
  memset (&session->internals.handshake_header_buffer, 0,
          sizeof (handshake_header_buffer_st));
  session->internals.adv_version_minor = 0;		// <<< 
  session->internals.adv_version_minor = 0;		// <<<
  session->internals.direction = 0;


I think one of those marked lines should be
  session->internals.adv_version_major = 0;		// <<< 


Ciao, Marcus




More information about the Gnutls-devel mailing list