From e095782b35e3ab6afbf4226b46c63398ffa29b00 Mon Sep 17 00:00:00 2001 From: Ben Kibbey Date: Wed, 2 Jan 2008 18:37:27 -0500 Subject: [PATCH] Fixed a null pointer reference which could lead to a segfault. --- src/commands.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/commands.c b/src/commands.c index 12ba4c6b..4e7ed288 100644 --- a/src/commands.c +++ b/src/commands.c @@ -2139,7 +2139,8 @@ void cleanup_assuan(assuan_context_t ctx) { struct client_s *cl = assuan_get_pointer(ctx); - cleanup_client(cl); + if (cl) + cleanup_client(cl); } static void reset_notify(assuan_context_t ctx) -- 2.11.4.GIT