scd: Fix race conditions for release_application.
authorNIIBE Yutaka <gniibe@fsij.org>
Tue, 19 Jul 2016 01:53:39 +0000 (10:53 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Tue, 19 Jul 2016 01:53:39 +0000 (10:53 +0900)
commit0c1fd4e9884ed7c1edd1819762b9e8a77f606ed3
treec35e775e6f0faf96ebe3e612bd63c642b22f3a90
parentf474249366e8e143c8e6eb7f7b1a74056e46fa1f
scd: Fix race conditions for release_application.

* scd/command.c (do_reset, cmd_restart): Reset app_ctx before calling
release_application.

--

Thanks to Ben Warren for the report.

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
scd/command.c