mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
82c7eac041
- copy basic objects from client implementation - fix pkg warnings - use lwm2m_strdup instead of strdup - fix alignment problem in lwm2m data struct - add fix of acc_ctrl object read
26 lines
932 B
Diff
26 lines
932 B
Diff
From 47d78e80ceb80a06e0cb9b0b7f7c959d04bd2c22 Mon Sep 17 00:00:00 2001
|
|
From: Christian Manal <moenoel@informatik.uni-bremen.de>
|
|
Date: Mon, 5 Feb 2018 15:52:10 +0100
|
|
Subject: [PATCH] Use lwm2m_strdup() instead of strdup()
|
|
|
|
---
|
|
examples/client/object_security.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/examples/client/object_security.c b/examples/client/object_security.c
|
|
index bfb5f85..d91f6e5 100644
|
|
--- a/examples/client/object_security.c
|
|
+++ b/examples/client/object_security.c
|
|
@@ -540,7 +540,7 @@ lwm2m_object_t * get_security_object(int serverId,
|
|
targetP->securityMode = LWM2M_SECURITY_MODE_PRE_SHARED_KEY;
|
|
if (bsPskId)
|
|
{
|
|
- targetP->publicIdentity = strdup(bsPskId);
|
|
+ targetP->publicIdentity = lwm2m_strdup(bsPskId);
|
|
targetP->publicIdLen = strlen(bsPskId);
|
|
}
|
|
if (pskLen > 0)
|
|
--
|
|
2.1.4
|
|
|