Transceiver: Check return value when binding IP addr for clock socket

No need to continue further since anyway we'll end up exiting.

Change-Id: Id8b38b40df5744beb705d560defb06532cf0fd44
This commit is contained in:
Pau Espin 2019-08-26 10:55:04 +02:00
parent ca6a78e193
commit e7195ac7d0
1 changed files with 2 additions and 0 deletions

View File

@ -212,6 +212,8 @@ bool Transceiver::init(FillerType filler, size_t rtsc, unsigned rach_delay,
mLocalAddr.c_str(), mBasePort,
mRemoteAddr.c_str(), mBasePort + 100,
OSMO_SOCK_F_BIND | OSMO_SOCK_F_CONNECT);
if (mClockSocket < 0)
return false;
for (size_t i = 0; i < mChans; i++) {
c_srcport = mBasePort + 2 * i + 1;