Fix for 1480090.

This commit is contained in:
faluco 2020-05-06 19:09:59 +02:00 committed by Andre Puschmann
parent d9529a3a8f
commit 080ef5ae9a
1 changed files with 1 additions and 0 deletions

View File

@ -127,6 +127,7 @@ int spgw::gtpu::init_sgi(spgw_args_t* args)
sgi_sock = socket(AF_INET, SOCK_DGRAM, 0);
if (ioctl(sgi_sock, SIOCGIFFLAGS, &ifr) < 0) {
m_gtpu_log->error("Failed to bring up socket: %s\n", strerror(errno));
close(sgi_sock);
close(m_sgi);
return SRSLTE_ERROR_CANT_START;
}