freelancing-god/riddle — pull request #48 by sce (2012-03-22 13:03:24+00:00)
Title: riddle/client: open_socket: Revert modifications done to server config.

open_socket directly modifies the servers config array. When retrying
connections riddle will use the modified config which now might be empty
and thus respond with "Server not set".

This patch fixes this by reverting the modification done to the server
config by open_socket before returning.