svn commit: r344245 - head/usr.sbin/bsnmpd/modules/snmp_hostres

Andriy Voskoboinyk avos at FreeBSD.org
Mon Feb 18 03:23:11 UTC 2019


Author: avos
Date: Mon Feb 18 03:23:10 2019
New Revision: 344245
URL: https://svnweb.freebsd.org/changeset/base/344245

Log:
  snmp_hostres(3): fix a typo in sanity checks in handle_chunk()
  
  PR:		204253
  Submitted by:	David Binderman <dcb314 at hotmail.com>
  MFC after:	5 days

Modified:
  head/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_partition_tbl.c

Modified: head/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_partition_tbl.c
==============================================================================
--- head/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_partition_tbl.c	Mon Feb 18 03:15:25 2019	(r344244)
+++ head/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_partition_tbl.c	Mon Feb 18 03:23:10 2019	(r344245)
@@ -312,7 +312,7 @@ handle_chunk(int32_t ds_index, const char *chunk_name,
 
 	assert(chunk_name != NULL);
 	assert(chunk_name[0] != '\0');
-	if (chunk_name == NULL || chunk_name == '\0')
+	if (chunk_name == NULL || chunk_name[0] == '\0')
 		return;
 
 	HRDBG("ANALYZE chunk %s", chunk_name);


More information about the svn-src-head mailing list