diff options
Diffstat (limited to 'mcs/tools/security/sn.cs')
-rw-r--r-- | mcs/tools/security/sn.cs | 2 |
1 files changed, 1 insertions, 1 deletions
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): "); |