Fix up two assertions following malloc(). vangyzen@ notified me of

the second one. The first one is fixed as well.

Reported by:	vangyzen@
MFC after:	1 week
This commit is contained in:
Cy Schubert 2017-05-20 18:16:26 +00:00
parent 13e8eaeb39
commit 1232628506
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=318588

View File

@ -725,7 +725,7 @@ on_read_request_process(struct query_state *qstate)
if (read_response->error_code == -2) {
read_response->data = malloc(
read_response->data_size);
assert(read_response != NULL);
assert(read_response->data != NULL);
read_response->error_code = cache_read(c_entry,
read_request->cache_key,
read_request->cache_key_size,
@ -745,7 +745,7 @@ on_read_request_process(struct query_state *qstate)
if (read_response->error_code == -2) {
read_response->data = malloc(
read_response->data_size);
assert(read_response != NULL);
assert(read_response->data != NULL);
read_response->error_code = cache_read(neg_c_entry,
read_request->cache_key,
read_request->cache_key_size,