[Pkg-gnupg-commit] [gnupg2] 15/205: g13: Fix releasing of a syshelp context.
Daniel Kahn Gillmor
dkg at fifthhorseman.net
Wed May 11 08:38:09 UTC 2016
This is an automated email from the git hooks/post-receive script.
dkg pushed a commit to branch experimental
in repository gnupg2.
commit 6390beca54f55e8d36ff767b99ae9ff68b15f10e
Author: Werner Koch <wk at gnupg.org>
Date: Mon Dec 14 10:42:27 2015 +0100
g13: Fix releasing of a syshelp context.
* g13/call-syshelp.c (call_syshelp_release): Allow a NULL arg.
Signed-off-by: Werner Koch <wk at gnupg.org>
---
g13/call-syshelp.c | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/g13/call-syshelp.c b/g13/call-syshelp.c
index 2086dd1..545bc1a 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;
+ }
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gnupg2.git
More information about the Pkg-gnupg-commit
mailing list