Skip to content
Snippets Groups Projects
Commit c9a3de32 authored by Henrik (Grubba) Grubbström's avatar Henrik (Grubba) Grubbström
Browse files

Got rid of some minor bugs.

Rev: lib/modules/SSL.pmod/connection.pike:1.7
Rev: lib/modules/SSL.pmod/sslfile.pike:1.7
parent 1f472c80
Branches
Tags
No related merge requests found
/* $Id: connection.pike,v 1.6 1997/08/01 07:34:17 nisse Exp $ /* $Id: connection.pike,v 1.7 1997/11/19 22:36:40 grubba Exp $
* *
* SSL packet layer * SSL packet layer
*/ */
...@@ -219,7 +219,7 @@ string|int got_data(string s) ...@@ -219,7 +219,7 @@ string|int got_data(string s)
send_packet(packet); send_packet(packet);
if (alert_callback) if (alert_callback)
alert_callback(packet, current_read_state->seq_num, alert_context); alert_callback(packet, current_read_state->seq_num, alert_context);
if (packet->level == ALERT_fatal) if ((!packet) || (!this_object()) || (packet->level == ALERT_fatal))
return -1; return -1;
} }
else else
......
/* $Id: sslfile.pike,v 1.6 1997/08/03 22:48:42 grubba Exp $ /* $Id: sslfile.pike,v 1.7 1997/11/19 22:36:40 grubba Exp $
* *
*/ */
...@@ -150,7 +150,9 @@ private void ssl_read_callback(mixed id, string s) ...@@ -150,7 +150,9 @@ private void ssl_read_callback(mixed id, string s)
if (data < 0) if (data < 0)
{ {
/* Fatal error, remove from session cache */ /* Fatal error, remove from session cache */
die(-1); if (this_object()) {
die(-1);
}
return; return;
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment