Reply must be initialized to NULL, as there are a couple of "goto error" before initializing the variable