You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ma...@apache.org on 2016/10/26 19:03:29 UTC

incubator-mynewt-core git commit: imgmgr; newtmgr split status reporting was writing to closed cbor container, causing memory fault.

Repository: incubator-mynewt-core
Updated Branches:
  refs/heads/develop 101703211 -> 76d81d1d7


imgmgr; newtmgr split status reporting was writing to closed cbor
container, causing memory fault.


Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/76d81d1d
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/76d81d1d
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/76d81d1d

Branch: refs/heads/develop
Commit: 76d81d1d7d2635340b00e337c5e2b4f36e41aaf8
Parents: 1017032
Author: Marko Kiiskila <ma...@runtime.io>
Authored: Wed Oct 26 12:02:17 2016 -0700
Committer: Marko Kiiskila <ma...@runtime.io>
Committed: Wed Oct 26 12:02:17 2016 -0700

----------------------------------------------------------------------
 mgmt/imgmgr/src/imgmgr_state.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/76d81d1d/mgmt/imgmgr/src/imgmgr_state.c
----------------------------------------------------------------------
diff --git a/mgmt/imgmgr/src/imgmgr_state.c b/mgmt/imgmgr/src/imgmgr_state.c
index 3308a35..e1d65b6 100644
--- a/mgmt/imgmgr/src/imgmgr_state.c
+++ b/mgmt/imgmgr/src/imgmgr_state.c
@@ -280,7 +280,7 @@ imgmgr_state_read(struct mgmt_cbuf *cb)
         split_status = SPLIT_STATUS_INVALID;
     }
 
-    g_err |= cbor_encode_text_stringz(&image, "splitStatus");
+    g_err |= cbor_encode_text_stringz(&rsp, "splitStatus");
     g_err |= cbor_encode_int(&rsp, split_status);
 
     g_err |= cbor_encoder_close_container(penc, &rsp);