some fixes suggested by the static analyzer

(one was a real bug ... the response pointer was not set at all)