RIOT-OS/RIOT — pull request #1269 by cgundogan (2014-06-03 20:06:32+00:00)
Title: destiny: segfault due to dereferencing nullpointer

get_socket(i) returns NULL, when no specific socket is found.
Without an appropriate check for NULL, the current state
of the code leads to a segfault.