From 9972bf87b4f27d9c8f358ef8414ac1ab957a2f0f Mon Sep 17 00:00:00 2001 From: Jo Shields Date: Wed, 19 Feb 2014 22:12:43 +0000 Subject: Imported Upstream version 3.2.8+dfsg --- mcs/tools/security/sn.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mcs/tools/security/sn.cs') diff --git a/mcs/tools/security/sn.cs b/mcs/tools/security/sn.cs index c84505d30a..4f66600770 100644 --- a/mcs/tools/security/sn.cs +++ b/mcs/tools/security/sn.cs @@ -126,7 +126,7 @@ namespace Mono.Tools { return new StrongName (data).RSA; } catch { - if (data [0] != 0x30) + if (data.Length == 0 || data [0] != 0x30) throw; // this could be a PFX file Console.Write ("Enter password for private key (will be visible when typed): "); -- cgit v1.2.3