From 69307b9f5f60e3ad6b656e64645da19ccf2c71d8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Niels=20M=C3=B6ller?= <nisse@lysator.liu.se>
Date: Tue, 26 Aug 1997 07:48:13 +0200
Subject: [PATCH] Fixed broken decoding of strings.

Rev: lib/modules/SSL.pmod/asn1.pmod:1.2
---
 lib/modules/SSL.pmod/asn1.pmod | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/lib/modules/SSL.pmod/asn1.pmod b/lib/modules/SSL.pmod/asn1.pmod
index 53a22702aa..3b86991515 100644
--- a/lib/modules/SSL.pmod/asn1.pmod
+++ b/lib/modules/SSL.pmod/asn1.pmod
@@ -2,7 +2,7 @@
  *
  * Rudimentary support for decoding ASN.1 encoded data.
  *
- * $Id: asn1.pmod,v 1.1 1997/04/17 14:26:24 nisse Exp $
+ * $Id: asn1.pmod,v 1.2 1997/08/26 05:48:13 nisse Exp $
  */
 
 /* BER decoder
@@ -39,6 +39,7 @@ class ber_decode {
 #ifdef SSL3_DEBUG
     werror(sprintf("contents: %O\n", contents));
 #endif
+    value = contents; /* Default is no conversion */
     if (tag & 0x20)
     {
       object seq = object_program(this_object())(contents);
@@ -75,6 +76,8 @@ class ber_decode {
     case 5: /* Null */
       if (strlen(contents))
 	throw( ({ "SSL.asn1: Invalid NULL value.\n", backtrace() }) );
+      tag = "NULL";
+      value = 0;
       break;
     case 6: /* Object id */
     {
-- 
GitLab