diff options
-rw-r--r-- | g13/call-syshelp.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/g13/call-syshelp.c b/g13/call-syshelp.c index 2086dd1db..545bc1ab5 100644 --- a/g13/call-syshelp.c +++ b/g13/call-syshelp.c @@ -119,6 +119,11 @@ start_syshelp (ctrl_t ctrl) void call_syshelp_release (ctrl_t ctrl) { - assuan_release (ctrl->syshelp_local->assctx); - ctrl->syshelp_local->assctx = NULL; + if (!ctrl) + return; + if (ctrl->syshelp_local) + { + assuan_release (ctrl->syshelp_local->assctx); + ctrl->syshelp_local->assctx = NULL; + } } |