fix gtpu test valgrind warning

master
Francisco 4 years ago committed by Francisco Paisana
parent 2fc2280c3b
commit eb9814837a

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

Loading…
Cancel
Save