address unchecked return values

(cherry picked from commit ccfd5777)
18 jobs for 702-unchecked-returns-in-server-c-v9_12 in 7 minutes and 59 seconds (queued for 17 seconds)