Index: mDNSPosix.c =================================================================== --- mDNSPosix.c (revision 332) +++ mDNSPosix.c (revision 333) @@ -581,7 +581,7 @@ { char line[256]; char nameserver[16]; - char keyword[10]; + char keyword[11]; int numOfServers = 0; FILE *fp = fopen(filePath, "r"); if (fp == NULL) return -1; @@ -600,6 +600,7 @@ numOfServers++; } } + fclose(fp); return (numOfServers > 0) ? 0 : -1; }