strings.
Running 'net cache list' or secrets_get_trusted_domains through
valgrind gives a *huge* amount of invalid reads of one byte beyond the
indicated string length in libc's strncpy. Annoying...
Volker
(This used to be commit
0f8933ae778064ff58cdc832ce52c843631435bb)
if (!databuf.dptr || databuf.dsize <= TIMEOUT_LEN) {
SAFE_FREE(databuf.dptr);
SAFE_FREE(keystr);
+ SAFE_FREE(node->node_key.dptr);
node = node->next;
continue;
}
SAFE_FREE(valstr);
SAFE_FREE(entry);
SAFE_FREE(keystr);
+ SAFE_FREE(node->node_key.dptr);
node = node->next;
}
DEBUG(0, ("strndup failed!\n"));
return NT_STATUS_NO_MEMORY;
}
+
+ SAFE_FREE(k->node_key.dptr);
packed_pass = secrets_fetch(secrets_key, &size);
packed_size = tdb_trusted_dom_pass_unpack(packed_pass, size, pass);