From a1a6fd978ef939c00be56a4b84390fa80cfa0ba1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Grubbstr=C3=B6m=20=28Grubba=29?= <grubba@grubba.org> Date: Thu, 21 May 1998 01:13:52 +0200 Subject: [PATCH] Added some debug. Rev: lib/modules/SSL.pmod/connection.pike:1.8 --- lib/modules/SSL.pmod/connection.pike | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/lib/modules/SSL.pmod/connection.pike b/lib/modules/SSL.pmod/connection.pike index 8f2b8e4349..f9c1bf0821 100644 --- a/lib/modules/SSL.pmod/connection.pike +++ b/lib/modules/SSL.pmod/connection.pike @@ -1,4 +1,4 @@ -/* $Id: connection.pike,v 1.7 1997/11/19 22:36:40 grubba Exp $ +/* $Id: connection.pike,v 1.8 1998/05/20 23:13:52 grubba Exp $ * * SSL packet layer */ @@ -66,7 +66,14 @@ object recv_packet(string data) if (stringp(res)) { /* Finished a packet */ left_over = res; - return current_read_state->decrypt_packet(packet); + if (current_read_state) { + return current_read_state->decrypt_packet(packet); + } else { +#ifdef SSL3_DEBUG + werror(sprintf("SSL.connection->recv_packet(): current_read_state is zero!\n")); +#endif /* SSL3_DEBUG */ + return 0; + } } else /* Partial packet read, or error */ left_over = 0; -- GitLab