Date: Sat, 20 May 2017 18:16:27 +0000 (UTC) From: Cy Schubert <cy@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r318588 - head/usr.sbin/nscd Message-ID: <201705201816.v4KIGR8c048165@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: cy Date: Sat May 20 18:16:26 2017 New Revision: 318588 URL: https://svnweb.freebsd.org/changeset/base/318588 Log: 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 Modified: head/usr.sbin/nscd/query.c Modified: head/usr.sbin/nscd/query.c ============================================================================== --- head/usr.sbin/nscd/query.c Sat May 20 18:02:31 2017 (r318587) +++ head/usr.sbin/nscd/query.c Sat May 20 18:16:26 2017 (r318588) @@ -725,7 +725,7 @@ on_read_request_process(struct query_sta 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_sta 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,
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201705201816.v4KIGR8c048165>