it causes a big memory issue to add in serverRequestList.
because this request never remove
and subscribe presence for multicast should be not sent
on network.
since it is just for register clientCB in stack.
Change-Id: I14c9701009350ad52dfdf4e72db64522fc591705
Signed-off-by: jihwan.seo <jihwan.seo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/12941
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: JungYong KIM <jyong2.kim@samsung.com>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
resourceUri = NULL; // Client CB list entry now owns it
resourceType = NULL; // Client CB list entry now owns it
+#ifdef WITH_PRESENCE
+ if (method == OC_REST_PRESENCE)
+ {
+ if (requestInfo.isMulticast)
+ {
+ OIC_LOG(ERROR, TAG, "AddClientCB for presence done.");
+ goto exit;
+ }
+ else
+ {
+ OIC_LOG(ERROR, TAG, "this subscribe presence is unicast.");
+ }
+ }
+#endif
+
// send request
result = OCSendRequest(&endpoint, &requestInfo);
if (OC_STACK_OK != result)