Fix name validation in sni_watcher.c
Fix name validation in sni_watcher.c

This commit also fixes a memory leak that occurs on failure.

taiyu-len/sway,ascent12/sway,ascent12/sway,4e554c4c/sway,ptMuta/sway,taiyu-len/sway,1ace/sway,4e554c4c/sway,johalun/sway,taiyu-len/sway,1ace/sway,1ace/sway,ascent12/sway,SirCmpwn/sway