bsnmpd: Fix size of trapsink::comm to match other community arrays

This fixes a number of possible strcpy() buffer overruns between the various
community strings in trap.c.

Reported by:	Coverity
CIDs:		1006820, 1006821, 1006822
Sponsored by:	EMC / Isilon Storage Division
This commit is contained in:
Conrad Meyer 2016-05-11 17:06:03 +00:00
parent 5f0d846034
commit 4aa1608aee
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=299466

View File

@ -307,7 +307,7 @@ struct trapsink {
struct asn_oid index;
u_int status;
int socket;
u_char comm[SNMP_COMMUNITY_MAXLEN];
u_char comm[SNMP_COMMUNITY_MAXLEN + 1];
int version;
};
enum {