some dns fixes

This commit is contained in:
whottgen
2004-10-13 12:24:54 +00:00
parent 9403e7c8ac
commit ae25bb22fc
3 changed files with 53 additions and 6 deletions

View File

@ -347,7 +347,9 @@ int cache_lookup(verify_container_handle_t *vch, const char* address, int *resul
*result = mydata->result;
*output = (char*) malloc(sizeof(char) * (strlen(mydata->output) + 1));
strcpy(*output, mydata->output);
free(data.dptr);
/* Berkeley DB frees on its own! */
/* free(data.dptr); */
dbm_close(cache);
res = 0;
} else {