From c23902ae009a065fa4d4d523d05b91b45b7d5bd4 Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Sun, 1 Mar 2015 00:01:24 -0600 Subject: [PATCH] sasl: fix null deref on remote client exit --- modules/m_sasl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/m_sasl.c b/modules/m_sasl.c index 179fe9672..b67648b36 100644 --- a/modules/m_sasl.c +++ b/modules/m_sasl.c @@ -225,6 +225,7 @@ abort_sasl(struct Client *data) static void abort_sasl_exit(hook_data_client_exit *data) { - abort_sasl(data->target); + if (data->target->localClient) + abort_sasl(data->target); }