From a6e289c8ef3beb03abe3140b8617362be8759750 Mon Sep 17 00:00:00 2001 From: Mathieu Lacage Date: Wed, 19 Dec 2007 13:22:55 +0100 Subject: [PATCH] ensure m_listener is initialized properly --- src/devices/wifi/mac-low.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/devices/wifi/mac-low.cc b/src/devices/wifi/mac-low.cc index 50c1d5d61..cd21e7f5d 100644 --- a/src/devices/wifi/mac-low.cc +++ b/src/devices/wifi/mac-low.cc @@ -230,7 +230,8 @@ MacLow::MacLow () m_sendAckEvent (), m_sendDataEvent (), m_waitSifsEvent (), - m_currentPacket (0) + m_currentPacket (0), + m_listener (0) { m_lastNavDuration = Seconds (0); m_lastNavStart = Seconds (0); @@ -294,6 +295,7 @@ MacLow::CancelAllEvents (void) if (oneRunning && m_listener != 0) { m_listener->Cancel (); + m_listener = 0; } }