projects
/
platform
/
upstream
/
iotivity.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0d1a98d
)
Add null checking for observe request in easy setup
author
Jihun Ha
<jihun.ha@samsung.com>
Mon, 17 Oct 2016 02:42:57 +0000
(11:42 +0900)
committer
Uze Choi
<uzchoi@samsung.com>
Mon, 17 Oct 2016 04:23:07 +0000
(
04:23
+0000)
Checking if entityHandlerRequest is NULL is added.
Change-Id: I79bf75c9f53f28b9c0c679a5dd7371552764b5cd
Signed-off-by: Jihun Ha <jihun.ha@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13327
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Tested-by: Uze Choi <uzchoi@samsung.com>
service/easy-setup/enrollee/src/resourcehandler.c
patch
|
blob
|
history
diff --git
a/service/easy-setup/enrollee/src/resourcehandler.c
b/service/easy-setup/enrollee/src/resourcehandler.c
index
21592c9
..
be8232b
100755
(executable)
--- a/
service/easy-setup/enrollee/src/resourcehandler.c
+++ b/
service/easy-setup/enrollee/src/resourcehandler.c
@@
-1223,7
+1223,7
@@
OCEntityHandlerResult OCEntityHandlerCb(OCEntityHandlerFlag flag,
ehRet = OC_EH_ERROR;
}
}
- if (
flag & OC_OBSERVE_FLAG
)
+ if (
entityHandlerRequest && (flag & OC_OBSERVE_FLAG)
)
{
OIC_LOG(INFO, ES_RH_TAG, "Flag includes OC_OBSERVE_FLAG");