summaryrefslogtreecommitdiffstats
path: root/hicn-light
diff options
context:
space:
mode:
Diffstat (limited to 'hicn-light')
-rw-r--r--hicn-light/src/hicn/core/message.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hicn-light/src/hicn/core/message.c b/hicn-light/src/hicn/core/message.c
index ef8fa5d91..b0140eda4 100644
--- a/hicn-light/src/hicn/core/message.c
+++ b/hicn-light/src/hicn/core/message.c
@@ -288,6 +288,8 @@ bool message_HasContentExpiryTime(const Message *message) {
uint64_t message_GetContentExpiryTimeTicks(const Message *message) {
parcAssertNotNull(message, "Parameter message must be non-null");
uint64_t expire = messageHandler_GetContentExpiryTime(message->messageHead);
+ if(expire == 0)
+ return message->receiveTime;
return message->receiveTime + forwarder_NanosToTicks(expire * 1000000ULL);
}