summaryrefslogtreecommitdiff
path: root/resource/csdk/stack
diff options
context:
space:
mode:
authorSamanway Dey <samanway.dey@samsung.com>2019-05-20 19:42:29 +0530
committerDoHyun Pyun <dh79.pyun@samsung.com>2019-06-24 09:48:56 +0900
commit59508e63a87db355ae720afa8d446d2808b8ffb4 (patch)
tree241341e8750dde6a802510f1ee16f04d0fa082c6 /resource/csdk/stack
parent57a5cd3ae30e0f63d0d5a8258a19f46539da8d72 (diff)
downloadiotivity-59508e63a87db355ae720afa8d446d2808b8ffb4.tar.gz
iotivity-59508e63a87db355ae720afa8d446d2808b8ffb4.tar.bz2
iotivity-59508e63a87db355ae720afa8d446d2808b8ffb4.zip
Fix for server request with duplicate token issue
- Adding return statement so that server doesn't process a request if another one with same token already exists in serverRequestList https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/commit/c5711fd40dfbcaa3e47a6ac06ab08efd84ca66f2 (cherry picked from c5711fd40dfbcaa3e47a6ac06ab08efd84ca66f2) Change-Id: Iee2618576c4bbce9904251276848b493c731b9bc Signed-off-by: Samanway Dey <samanway.dey@samsung.com> Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
Diffstat (limited to 'resource/csdk/stack')
-rw-r--r--resource/csdk/stack/src/ocstack.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/resource/csdk/stack/src/ocstack.c b/resource/csdk/stack/src/ocstack.c
index fa790d17b..240920fa2 100644
--- a/resource/csdk/stack/src/ocstack.c
+++ b/resource/csdk/stack/src/ocstack.c
@@ -2021,6 +2021,7 @@ OCStackResult HandleStackRequests(OCServerProtocolRequest * protocolRequest)
else
{
OIC_LOG(INFO, TAG, "This is either a repeated or blocked Server Request");
+ return OC_STACK_DUPLICATE_REQUEST;
}
if(request->requestComplete)