Minor fix on socket/net/adhoc error codes