[pan2] fix use-after-free



commit 4c6d3bd7fc0dbd1ce1ad7e40690948b39764a89f
Author: Heinrich Müller <heinrich mueller82 gmail com>
Date:   Sat May 10 09:55:24 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 a74c469..d34eae6 100644
--- a/pan/tasks/nntp.cc
+++ b/pan/tasks/nntp.cc
@@ -61,8 +61,8 @@ NNTP :: fire_done_func (Health health, const StringView& response)
    {
       Listener * l = _listener;
       debug ("I (" << (void*)this << ") am setting my _listener to 0");
-      l->on_nntp_done (this, health, response);
       _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]