Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
iotivity-lite
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
31
Issues
31
List
Boards
Labels
Service Desk
Milestones
Merge Requests
6
Merge Requests
6
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
IoTivity
iotivity-lite
Commits
2165e2a6
Commit
2165e2a6
authored
Jan 06, 2020
by
Kishen Maloor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oc_pstat: fix logic for removing observers
Signed-off-by:
Kishen Maloor
<
kishen.maloor@intel.com
>
parent
67df64e4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
security/oc_pstat.c
security/oc_pstat.c
+3
-3
No files found.
security/oc_pstat.c
View file @
2165e2a6
...
...
@@ -258,9 +258,6 @@ oc_pstat_handle_state(oc_sec_pstat_t *ps, size_t device, bool from_storage,
ps
->
p
=
false
;
}
break
;
case
OC_DOS_RFNOP
:
{
#ifdef OC_SERVER
coap_remove_observers_on_dos_change
(
device
,
false
);
#endif
/* OC_SERVER */
ps
->
p
=
true
;
ps
->
cm
=
0
;
ps
->
tm
=
0
;
...
...
@@ -313,6 +310,9 @@ oc_pstat_handle_state(oc_sec_pstat_t *ps, size_t device, bool from_storage,
goto
pstat_state_error
;
}
ps
->
p
=
false
;
#ifdef OC_SERVER
coap_remove_observers_on_dos_change
(
device
,
false
);
#endif
/* OC_SERVER */
}
break
;
case
OC_DOS_SRESET
:
{
ps
->
p
=
true
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment