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, 29 Nov 2016 08:15:20 +0000 (17:15 +0900)
commit3b3386a3fd973ed7f388b1356138941c302848f2
treea2e76a01ca6d1a21792574f3dd2a35f25b0afa6a
parentf916d5756fae163896715b057a627a5fb58ddd52
scd: Fix race conditions for release_application.

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

--
Backport of master commit: 0c1fd4e9884ed7c1edd1819762b9e8a77f606ed3

Thanks to Ben Warren for the report.

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