adafruit/Adafruit_CC3000_Library — pull request #42 by PaulStoffregen (2013-12-08 14:01:35+00:00)
Title: ignore null pointers in accept (don't write to them)

Adafruit_CC3000_Server.cpp calls accept() with NULL pointers, because it's not interested in the IP number. This tiny patch prevents accept() from writing to those pointers if they're NULL.

On ARM (Teensy 3.0), writing to a NULL pointer causes a memory fault that stops the program. On AVR, it silently overwrites the register bank, which certainly is not good.

Discussion here:
http://forums.adafruit.com/viewtopic.php?f=22&t=46726&p=235230#p235230