Skip to content

Commit 80a1742

Browse files
committed
Merge branch 'V5-9-patches'
* V5-9-patches: Update the parser to warn about duplicate OBJECTs, TEXTUAL-CONVENTIONs and values in enums snmptest: plug a possible memory leak. Update SNMP-TLS-TM-MIB.txt to RFC 9456 version.
2 parents 678f2b7 + 7f5fb80 commit 80a1742

File tree

5 files changed

+645
-542
lines changed

5 files changed

+645
-542
lines changed

apps/snmptest.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,8 @@ main(int argc, char *argv[])
185185
}
186186
}
187187
}
188+
if (copy)
189+
snmp_free_pdu(copy);
188190
copy = snmp_clone_pdu(pdu);
189191
if (command == SNMP_MSG_TRAP2) {
190192
/*

include/net-snmp/library/parse.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ SOFTWARE.
5454
struct enum_list *next;
5555
int value;
5656
char *label;
57+
int lineno;
5758
};
5859

5960
/*

0 commit comments

Comments
 (0)