From: Olivier Roques Date: Thu, 9 Jan 2020 18:19:05 +0000 (+0100) Subject: [HICN-471] Fix wrong callback check in RAAQM X-Git-Tag: v20.01~20^2 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=0708f383411f33238eca2d5000ecd310019f8c21;p=hicn.git [HICN-471] Fix wrong callback check in RAAQM The wrong callback is null-checked before it is used in RAAQM. Signed-off-by: Olivier Roques Change-Id: Id602453ad18d0297663b7cef66daa58cc5c0891a --- diff --git a/libtransport/src/hicn/transport/protocols/raaqm.cc b/libtransport/src/hicn/transport/protocols/raaqm.cc index e8d0e659a..ec7ce19cc 100644 --- a/libtransport/src/hicn/transport/protocols/raaqm.cc +++ b/libtransport/src/hicn/transport/protocols/raaqm.cc @@ -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); }