Initialize error data structure with 0 if there is no error
If the client connect function is successfull, it did not fill out the error
data structure. However, some unit tests rely on this data being 0 (the old
implementation did reset it). Therefore we reset it to 0 again.