[HICN-471] Fix wrong callback check in RAAQM 72/24272/1
authorOlivier Roques <oroques+fdio@cisco.com>
Thu, 9 Jan 2020 18:19:05 +0000 (19:19 +0100)
committerOlivier Roques <oroques+fdio@cisco.com>
Thu, 9 Jan 2020 18:19:05 +0000 (19:19 +0100)
The wrong callback is null-checked before it is used in RAAQM.

Signed-off-by: Olivier Roques <oroques+fdio@cisco.com>
Change-Id: Id602453ad18d0297663b7cef66daa58cc5c0891a

libtransport/src/hicn/transport/protocols/raaqm.cc

index e8d0e65..ec7ce19 100644 (file)
@@ -328,7 +328,7 @@ void RaaqmTransportProtocol::onContentObject(
   ConsumerInterestCallback *callback_interest = VOID_HANDLER;
   socket_->getSocketOption(ConsumerCallbacksOptions::INTEREST_SATISFIED,
                            &callback_interest);
-  if (*callback_content_object) {
+  if (*callback_interest) {
     (*callback_interest)(*socket_, *interest);
   }