Fixes coverity 373333

This commit is contained in:
Alejandro Leal Conejos 2021-10-26 16:31:52 +02:00 committed by Ismael Gomez
parent 4c518b8c82
commit ee0ec564ef
1 changed files with 2 additions and 0 deletions

View File

@ -157,6 +157,8 @@ int mbms_gw::init_sgi_mb_if(mbms_gw_args_t* args)
if (not srsran::net_utils::set_sockaddr(addr, args->sgi_mb_if_addr.c_str(), 0)) {
m_logger.error("Invalid sgi_mb_if_addr: %s", args->sgi_mb_if_addr.c_str());
srsran::console("Invalid sgi_mb_if_addr: %s\n", args->sgi_mb_if_addr.c_str());
close(m_sgi_mb_if);
close(sgi_mb_sock);
return SRSRAN_ERROR_CANT_START;
}