[pan2] fix use-after-free



commit d447f7c204d7e5831a9ecd116448c969f7521a0d
Author: Heinrich Müller <heinrich mueller82 gmail com>
Date:   Mon May 12 06:51:45 2014 +0200

    fix use-after-free

 pan/tasks/nntp.cc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/pan/tasks/nntp.cc b/pan/tasks/nntp.cc
index d34eae6..9a31ed5 100644
--- a/pan/tasks/nntp.cc
+++ b/pan/tasks/nntp.cc
@@ -61,9 +61,9 @@ NNTP :: fire_done_func (Health health, const StringView& response)
    {
       Listener * l = _listener;
       debug ("I (" << (void*)this << ") am setting my _listener to 0");
+      _compression = false;
       _listener = 0;
       l->on_nntp_done (this, health, response);
-      _compression = false;
    }
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]