do some KNF on evdns.c; add checks to prevent potential buffer overflows. fix one memory leak. svn:r230