mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-02 12:01:32 +01:00
Fix segv.
This commit is contained in:
parent
1ade5ed150
commit
2749c6bcd9
@ -1,3 +1,8 @@
|
||||
2009-03-03 Werner Koch <wk@g10code.com>
|
||||
|
||||
* command.c (scd_command_handler): Remove dereference of STOPME
|
||||
after free.
|
||||
|
||||
2009-02-27 Werner Koch <wk@g10code.com>
|
||||
|
||||
* app.c (get_supported_applications): New.
|
||||
|
@ -1857,6 +1857,7 @@ scd_command_handler (ctrl_t ctrl, int fd)
|
||||
{
|
||||
int rc;
|
||||
assuan_context_t ctx;
|
||||
int stopme;
|
||||
|
||||
if (fd == -1)
|
||||
{
|
||||
@ -1942,13 +1943,14 @@ scd_command_handler (ctrl_t ctrl, int fd)
|
||||
BUG ();
|
||||
sl->next_session = ctrl->server_local->next_session;
|
||||
}
|
||||
stopme = ctrl->server_local->stopme;
|
||||
xfree (ctrl->server_local);
|
||||
ctrl->server_local = NULL;
|
||||
|
||||
/* Release the Assuan context. */
|
||||
assuan_deinit_server (ctx);
|
||||
|
||||
if (ctrl->server_local->stopme)
|
||||
if (stopme)
|
||||
scd_exit (0);
|
||||
|
||||
/* If there are no more sessions return true. */
|
||||
|
Loading…
x
Reference in New Issue
Block a user