what was it used for before you got it?
If it was recently used for sherry and the varnish is part of that process than it's probably fine but if it was varnished for display it is probably not a great bet as a barrell but I am not familiar with the process of making sherry.