diff options
author | cy <cy@FreeBSD.org> | 2017-05-30 03:30:53 +0000 |
---|---|---|
committer | cy <cy@FreeBSD.org> | 2017-05-30 03:30:53 +0000 |
commit | 8e79febcf2f5ad3de033cc615aec90a8f82ad89e (patch) | |
tree | a4ea0c572af869646353f137b11659c91871f3fd | |
parent | 8d5e39de5335ea7b7c4f715911a64174b8debe3a (diff) | |
download | FreeBSD-src-8e79febcf2f5ad3de033cc615aec90a8f82ad89e.zip FreeBSD-src-8e79febcf2f5ad3de033cc615aec90a8f82ad89e.tar.gz |
MFC r318588:
Fix up two assertions following malloc(). vangyzen@ notified me of
the second one. The first one is fixed as well.
Reported by: vangyzen@
-rw-r--r-- | usr.sbin/nscd/query.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/nscd/query.c b/usr.sbin/nscd/query.c index a2b93d6..9b28082 100644 --- a/usr.sbin/nscd/query.c +++ b/usr.sbin/nscd/query.c @@ -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, |