[PATCH] services: Fix reading past end of struct (Coverity)