commit | 55f80b6a232df2cd673b82c9d5c42b013aa07876 | [log] [tgz] |
---|---|---|
author | 柯志勇10068695 <ke.zhiyong@zte.com.cn> | Thu Oct 11 17:28:31 2018 +0800 |
committer | Ray Milkey <ray@opennetworking.org> | Fri Oct 19 05:54:58 2018 +0000 |
tree | fbcf63a3f176fb94efcb3f8e85b969c76874ca67 | |
parent | 16c95ff780df1d4b9ad1b4c98b38e505c7cfd5a3 [diff] |
The result of dis.getMessageDigest().digest() must be returned here. Otherwise, this method will lose its meaning. Change-Id: I356a47386bde4c39eb5e1e95a3f7036a38137acd
diff --git a/protocols/openflow/ctl/src/main/java/org/onosproject/openflow/controller/impl/Controller.java b/protocols/openflow/ctl/src/main/java/org/onosproject/openflow/controller/impl/Controller.java index cb6df8d4..6cf1ddc 100644 --- a/protocols/openflow/ctl/src/main/java/org/onosproject/openflow/controller/impl/Controller.java +++ b/protocols/openflow/ctl/src/main/java/org/onosproject/openflow/controller/impl/Controller.java
@@ -321,7 +321,8 @@ while (dis.read(buffer) > 0) { // nothing to do :) } - dis.getMessageDigest().digest(); + is.close(); + return dis.getMessageDigest().digest(); } catch (NoSuchAlgorithmException ignored) { } catch (IOException e) { log.info("Error reading file file: {}", filepath);