[PATCH v3 3/3] server: Check for zero access in alloc_handle().