mirror of https://github.com/sipwise/sems.git
Can be NULL.
Fixes:
*** CID 545194: Null pointer dereferences (FORWARD_NULL)
/apps/db_reg_agent/DBRegAgent.cpp: 1255 in DBRegAgent::setRegistrationTimer(long, unsigned long,
RegistrationActionEvent::RegAction, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> &)()
1249 DBG("timer object for subscription %ld not found, type: %s\n", object_id, type.c_str());
1250 timer = new RegTimer();
1251 timer->object_id = object_id;
1252 timer->type = type; // 'peering' or 'subscriber'
1253 DBG("created timer object [%p] for subscription %ld, type: %s\n", timer, object_id, type.c_str());
1254 } else {
>>> CID 545194: Null pointer dereferences (FORWARD_NULL)
>>> Dereferencing null pointer "it".
1255 timer = it->second;
1256 DBG("removing scheduled timer...\n");
1257 registration_scheduler.remove_timer(timer);
1258 }
1259
1260 timer->action = reg_action;
Change-Id: I097d796c9ba2ac9a8c7334602030a59ac526eee9
mr13.3.1
parent
82ee9a0b40
commit
85842fd136
Loading…
Reference in new issue