Steps to reproduce:
When a subscription is done and the timeout is set to infinity, newPD->timeToGo is set to zero.
When tlp_get checks the timeout, it compares pElement->timeToGo with the current time. Since timeToGo is zero, the current time is greater than timeToGo and the timeout error is signaled.
TRDP_TIMER_FOREVER was not accessible for user, needs to be defined in trdp_types.h