data left inside sm_data. If there's an incomplete packet left in the
buffer it will be called from snmpe_tryparse, if there's a complete
packet left we can end up with new events from the tcp socket, which the
tcp subsystem isn't prepared to handle.
OK tb@
-/* $OpenBSD: snmpe.c,v 1.91 2023/11/12 19:59:56 martijn Exp $ */
+/* $OpenBSD: snmpe.c,v 1.92 2023/11/20 10:32:45 martijn Exp $ */
/*
* Copyright (c) 2007, 2008, 2012 Reyk Floeter <reyk@openbsd.org>
msg->sm_datalen - reqlen);
nmsg->sm_datalen = msg->sm_datalen - reqlen;
snmp_msgfree(msg);
- snmpe_prepare_read(nmsg, fd);
snmpe_tryparse(fd, nmsg);
} else {
snmp_msgfree(msg);