diff --git a/lib/modules/SSL.pmod/Connection.pike b/lib/modules/SSL.pmod/Connection.pike index e04146c2a3b9e3578b53abe3cd96361b3365392b..8b6fcfe3cc61b72aa880d1a0fa85f2a2354726cb 100644 --- a/lib/modules/SSL.pmod/Connection.pike +++ b/lib/modules/SSL.pmod/Connection.pike @@ -763,9 +763,6 @@ string(8bit)|int got_data(string(8bit) data) // That enables the caller to check for a clean close, and // to get the leftovers after the SSL connection. - /* If alert_callback is called, this data is passed as an argument */ - string(8bit) alert_context = (left_over || "") + data; - string(8bit) res = ""; Packet packet; while (packet = recv_packet(data)) @@ -776,7 +773,7 @@ string(8bit)|int got_data(string(8bit) data) { /* Reply alert */ SSL3_DEBUG_MSG("SSL.Connection: Bad received packet\n"); if (alert_callback) - alert_callback(packet, current_read_state->seq_num, alert_context); + alert_callback(packet, current_read_state->seq_num, left_over); if (this && packet) send_packet(packet); if ((!packet) || (!this) || (packet->level == ALERT_fatal))