From 5170a087c9b1b3490a0a9668f467e389be35d17c Mon Sep 17 00:00:00 2001 From: David Blacka Date: Sun, 1 Feb 2009 18:24:30 +0000 Subject: [PATCH] close the private key file after reading it. patch by Wolfgang Nagele git-svn-id: https://svn.verisignlabs.com/jdnssec/tools/trunk@111 4cbd57fe-54e5-0310-bd9a-f30fe5ea5e6e --- src/com/verisignlabs/dnssec/security/BINDKeyUtils.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/com/verisignlabs/dnssec/security/BINDKeyUtils.java b/src/com/verisignlabs/dnssec/security/BINDKeyUtils.java index 2309973..6345a17 100644 --- a/src/com/verisignlabs/dnssec/security/BINDKeyUtils.java +++ b/src/com/verisignlabs/dnssec/security/BINDKeyUtils.java @@ -118,7 +118,8 @@ public class BINDKeyUtils key_buf.append(line); key_buf.append('\n'); } - + in.close(); + return key_buf.toString().trim(); }