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 2017/03/07 00:05:00 UTC

[05/50] incubator-mynewt-core git commit: net/oic; notifications were not working. memset() in coap_receive_packet() was overwriting too many bytes, running into observer memory pool area.

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

Branch: refs/heads/1_0_0_dev
Commit: 4f154cd3cc41ad2822c4cc3338f4575e4a6da7d3
Parents: 89731c6
Author: Marko Kiiskila <ma...@runtime.io>
Authored: Mon Feb 27 14:24:48 2017 -0800
Committer: Marko Kiiskila <ma...@runtime.io>
Committed: Mon Mar 6 15:48:02 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/4f154cd3/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);