fix gtpu test valgrind warning

This commit is contained in:
Francisco 2021-04-02 15:37:39 +01:00 committed by Francisco Paisana
parent 2fc2280c3b
commit eb9814837a
1 changed files with 2 additions and 2 deletions

View File

@ -65,7 +65,7 @@ struct dummy_socket_manager : public srsran::socket_manager_itf {
/// Register (fd, callback). callback is called within socket thread when fd has data.
bool add_socket_handler(int fd, recv_callback_t handler) final
{
if (s1u_fd > 0) {
if (s1u_fd >= 0) {
return false;
}
s1u_fd = fd;
@ -83,7 +83,7 @@ struct dummy_socket_manager : public srsran::socket_manager_itf {
return true;
}
int s1u_fd;
int s1u_fd = -1;
recv_callback_t callback;
};