aboutsummaryrefslogtreecommitdiffstats
path: root/libtransport
diff options
context:
space:
mode:
authorOlivier Roques <oroques+fdio@cisco.com>2020-01-09 19:19:05 +0100
committerOlivier Roques <oroques+fdio@cisco.com>2020-01-09 19:19:05 +0100
commit0708f383411f33238eca2d5000ecd310019f8c21 (patch)
treeb02abd03b16e7b9796c8855742153c4a861a9c61 /libtransport
parent3884838d8a88bf9d9d5873fea40361459846d663 (diff)
[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 <oroques+fdio@cisco.com> Change-Id: Id602453ad18d0297663b7cef66daa58cc5c0891a
Diffstat (limited to 'libtransport')
-rw-r--r--libtransport/src/hicn/transport/protocols/raaqm.cc2
1 files changed, 1 insertions, 1 deletions
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);
}