Fix bug for discover logic on consumer service.
authorKIM JungYong <jyong2.kim@samsung.com>
Mon, 29 Aug 2016 04:43:56 +0000 (13:43 +0900)
committerUze Choi <uzchoi@samsung.com>
Mon, 29 Aug 2016 07:46:24 +0000 (07:46 +0000)
commit02391a07de00264d6b54a48babae65c46f94701f
treedc220e65168e6d8d7891b5fff261f403533c3377
parente0cd63ba7c07a430a68f4c5822cf5b52ee30e4bc
Fix bug for discover logic on consumer service.

1) Modify default connectivity type of discover requestion.
When consumer service run the discover provider,
Connectivity type of request was CT_DEFAULT.
It original meaning was CT_ADAPTER_IP.

2) Remove meaningless memory allocation.
When discover as TCP, we use of allocated context data.
But, this context data unnecessary to allocate.

Change-Id: I2fab71f5352485f04b17b3e7fdd9cda254ebeab9
Signed-off-by: KIM JungYong <jyong2.kim@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/11017
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
service/notification/src/consumer/NSConsumerDiscovery.c