sgsn: Check the return value of osmo_fd_register
We can't do much in case the fd is failing to be registered. There should be a timeout that is catching this and it might be able to repair it self. Fixes: Coverity CID#1302854
This commit is contained in:
parent
c36a13b073
commit
65b0efe56e
|
@ -114,7 +114,8 @@ static void setup_ares_osmo_fd(void *data, int fd, int read, int write)
|
|||
ufd->fd.fd = fd;
|
||||
ufd->fd.cb = ares_osmo_fd_cb;
|
||||
ufd->fd.data = data;
|
||||
osmo_fd_register(&ufd->fd);
|
||||
if (osmo_fd_register(&ufd->fd) != 0)
|
||||
LOGP(DGPRS, LOGL_ERROR, "Failed to register C-ares fd (%d)\n", fd);
|
||||
llist_add(&ufd->head, &sgsn->ares_fds);
|
||||
|
||||
update_fd:
|
||||
|
|
Loading…
Reference in New Issue