[PATCH v5 9/9] server: Check for zero access in alloc_handle().