Fix segfault on reauth, reusing buffer for url