trap receiver is special in that the OID is optional. Make sure that we
authormartijn <martijn@openbsd.org>
Tue, 20 Feb 2024 12:32:48 +0000 (12:32 +0000)
committermartijn <martijn@openbsd.org>
Tue, 20 Feb 2024 12:32:48 +0000 (12:32 +0000)
commitba93604f4546861004c93cea8e6006b36607ab74
treecc81cce03fd56bbc341611cd862dce691afe1785
parentb26e50747e055dfe05cb79d9a57e1528b7acf1e5
trap receiver is special in that the OID is optional. Make sure that we
accept a NULL descriptor, which results in an OID length of 0.

Found by and OK sthen@
usr.sbin/snmpd/parse.y