Fixed bug with sys_accept when addr was null.