[PATCH v4 10/10] server: Check for zero access in alloc_handle().