rfsim: add a check on 'sock'
It is very possible that the operating system returns a file descriptor bigger than the size of bridge->buf (MAX_FD_RFSIMU, which is 250 as of now). As a minimum, let's fail if the socket file descriptor is out of bounds. A proper solution may be implemented later, if needed.
Showing
Please register or sign in to comment