Branch: Tag:

2015-03-30

2015-03-30 23:14:02 by Martin Nilsson <nilsson@opera.com>

Check for extra packet data after calling handle_handshake. This will break the code is we are currently incorrectly ignoring any packet data.

1029:       mixed exception = catch {    err = handle_handshake(type, input, raw); +  COND_FATAL(err>=0 && sizeof(input), ALERT_record_overflow, +  sprintf("Extraneous handshake packet data (%O).\n", +  type));    };    if( exception )    {
1044:    if (err > 0) {    state &= ~CONNECTION_handshaking;    COND_FATAL(sizeof(handshake_buffer), ALERT_record_overflow, -  "Extraneous handshake data.\n"); +  "Extraneous handshake packets.\n");    }    }    break;