Fix bad rebasing conflict resolution. We need to pass the authdb here
Fixed PHP-715: Crash when authenticating on a dead socket

free() data_buffer on failure inside the function
The caller only has to free() it on success (when its guaranteed to hold data)