routing/aodv: added return on failed socket cration for receiver thread

This commit is contained in:
BytesGalore 2015-04-13 11:59:12 +02:00
parent c47563a745
commit feff423f07

View File

@ -294,6 +294,7 @@ static void *_aodv_receiver_thread(void *arg)
if (-1 == socket_base_bind(sock_rcv, &sa_rcv, sizeof(sa_rcv))) { if (-1 == socket_base_bind(sock_rcv, &sa_rcv, sizeof(sa_rcv))) {
DEBUG("Error: bind to receive socket failed!\n"); DEBUG("Error: bind to receive socket failed!\n");
socket_base_close(sock_rcv); socket_base_close(sock_rcv);
return NULL;
} }
AODV_DEBUG("ready to receive data\n"); AODV_DEBUG("ready to receive data\n");