Repository: incubator-mynewt-core
Updated Branches:
  refs/heads/develop 5000e8d68 -> d3dbe78cb


net/oic; notifications were not working.
memset() in coap_receive_packet() was overwriting too many bytes,
running into observer memory pool area.


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/d3dbe78c
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/d3dbe78c
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/d3dbe78c

Branch: refs/heads/develop
Commit: d3dbe78cbd566a97d676c60f37c1448d0a8b7757
Parents: c9de6b3
Author: Marko Kiiskila <[email protected]>
Authored: Mon Feb 27 14:24:48 2017 -0800
Committer: Marko Kiiskila <[email protected]>
Committed: Mon Feb 27 14:26:31 2017 -0800

----------------------------------------------------------------------
 net/oic/src/messaging/coap/coap.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/d3dbe78c/net/oic/src/messaging/coap/coap.c
----------------------------------------------------------------------
diff --git a/net/oic/src/messaging/coap/coap.c 
b/net/oic/src/messaging/coap/coap.c
index 17df8f8..30d72e5 100644
--- a/net/oic/src/messaging/coap/coap.c
+++ b/net/oic/src/messaging/coap/coap.c
@@ -555,7 +555,7 @@ coap_parse_message(struct coap_packet_rx *pkt, struct 
os_mbuf **mp)
 
     m = *mp;
     /* initialize packet */
-    memset(pkt, 0, sizeof(coap_packet_t));
+    memset(pkt, 0, sizeof(*pkt));
 
     STATS_INC(coap_stats, iframe);
 

Reply via email to