# -*- text -*-

----------------------------------------------------------------------

Changes: V5.9.4.rc1 -> V5.9.4

commit 5289dca2699acb24e4ba92bc20fd1079484eb0fb
Author: Wes Hardaker <opensource@hardakers.net>
Date:   Tue Aug 15 13:28:30 2023 -0700

    added a note about TLS

commit 54f9a73ebdcc7e038f1f9a2612115b3f909ec871
Author: Wes Hardaker <opensource@hardakers.net>
Date:   Tue Aug 15 13:18:19 2023 -0700

    remove 5-9 patches

commit 7e527d309934c8c28e55de4c1d856a9cae137a7e
Author: Wes Hardaker <opensource@hardakers.net>
Date:   Tue Aug 15 13:17:47 2023 -0700

    Version number update: 5.9.4

commit 04b98f6b3c939382e697a85a10569299eb74b46e
Author: Wes Hardaker <opensource@hardakers.net>
Date:   Tue Aug 15 13:16:36 2023 -0700

    better debug message

commit 100c0d989079cd36954e3000591fd1ef9e6859a1
Author: Wes Hardaker <opensource@hardakers.net>
Date:   Tue Aug 15 13:16:09 2023 -0700

    changes and news

----------------------------------------------------------------------

Changes: V5.9.4.pre3 -> V5.9.4.rc1

commit bb7eb41a74cb11a212cc7b69bde09d10290f7824
Author: Wes Hardaker <opensource@hardakers.net>
Date:   Thu Jun 22 08:00:33 2023 -0700

    Release Candidate for V5-9-patches

commit ab9840507a39b68fa7bf3ebc1b03b4725ceaea1a
Author: Wes Hardaker <opensource@hardakers.net>
Date:   Thu Jun 22 08:00:31 2023 -0700

    Version number update: 5.9.4.rc1

commit d4db247d68c868452d4fe876796e2cd1e8326239
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Tue Jun 20 06:59:15 2023 -0700

    configure: Remove -Wno-deprecated
    
    Remove this compiler option now that a better solution is available for
    suppressing warnings from the OpenSSL library about using deprecated functions.

commit d9be7344eeec10d139789f2cbac9ab0a7791f24d
Author: Niels Baggesen <nba@users.sourceforge.net>
Date:   Mon Jun 19 10:05:50 2023 +0200

    libsnmp: Declare OpenSSL API version
    
    Add the include/net-snmp/library/openssl_config.h header file. This suppresses
    warnings from the OpenSSL 3.0+ library about using deprecated API functions.
    
    Fixes: https://github.com/net-snmp/net-snmp/pull/591
    
    [ bvanassche: edited patch description ]

commit d78add0cdb953775786e040f2a6e92b578e84699
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Wed Jun 7 08:04:06 2023 -0700

    ci: Upgrade Github checkout action
    
    This patch addresses the following warning:
    
    Node.js 12 actions are deprecated. Please update the following actions to use
    Node.js 16: actions/checkout@v2. For more information see:
    https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/.

commit 83a42cbb2fafcb228795be561d4cda2b1357a18e
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Sat Jan 21 15:55:55 2023 -0800

    ci: Drop support for Travis CI
    
    CI support for open source projects ceased on travis-ci.org in June 2021.
    Hence remove support for Travis CI.

commit 45cca4ef4babd5ee32961f92d69027774fe0aa02
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Wed Dec 21 17:08:52 2022 -0800

    ci/perl.bat: Fix a syntax error

commit 50b7683008534ed4201e2e7796bd6f584c746852
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Tue Sep 13 13:43:02 2022 -0700

    .cirrus.yml: Update to the current Cirrus CI syntax
    
    Additionally, do not install pkgconf since it breaks the Net-SNMP build.

commit b6569d5af51d2d6d158621b8c8b4c04cbf1666a8
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Sun Aug 7 15:34:32 2022 -0700

    Make the shell scripts again compatible with the POSIX shell
    
    Although /bin/sh is a soft link to /bin/bash on many Linux systems, this is
    not always the case. Use the POSIX shell syntax in shell scripts instead of
    bash extensions.

commit a7dbdfb70cd82a8bc5563aa5a97c579c0f42a714
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Fri Aug 5 17:10:46 2022 -0700

    ci/net-snmp-configure: Only apply Travis workarounds for Travis CI

commit f120aa7d59c2b3554ab0c9f20da5424491c429d4
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Sat Jul 30 20:06:29 2022 -0700

    ci: Build with OpenSSL and wolfSSL

commit f3b8e895ea273a08fd013c7a430844df8988c829
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Sat Jul 30 20:49:34 2022 -0700

    ci/net-snmp-configure: Remove the OpenSSL version querying code

commit 6c7ec60055a2e35e34c69bd24ec5ac68bd16d68b
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Tue Jun 6 11:39:28 2023 -0700

    ci: Improve .appveyor.yml
    
    Reduce the build time by excluding configurations that are skipped. Add the
    Ubuntu2004 image. Switch from Visual Studio 2019 to Visual Studio 2022. Switch
    from macos-mojave to macos-monterey.

commit e1fdcba82e5d8dff9c22de4f8307cc262d537977
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Tue Sep 13 13:39:42 2022 -0700

    ci: Use /bin/sh instead of /bin/bash
    
    Use /bin/sh since /bin/bash is not installed by default in the Cirrus CI
    FreeBSD VMs.

commit 79204e14f69ffb8b2f5204a3c9df8b5e79136366
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Thu Aug 4 14:01:19 2022 -0700

    ci/install.sh: Install packages quietly

commit a0d72fb33567dcd9faaa44479a6501f1843efd9e
Author: Florian Koehler <floriankoehler@siemens.com>
Date:   Mon Mar 6 15:45:30 2023 +0100

    Added fix for TSM segfault.

commit a99eee78c38b62567ab0ff55b8c04b2d8656bc54
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Sun Jun 4 13:49:51 2023 -0700

    testing/fulltests/unit-tests/T021netsnmp_sprint_integer_clib.c: Add this test
    
    Add a reproducer for https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=59491.

commit a9fba9a2f23a06a4d01482ccdb96b8ba70c1b0de
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Sun Jun 4 14:33:14 2023 -0700

    libsnmp: Reject invalid DISPLAY-HINT format characters
    
    Prevent that format characters like 'F' cause a buffer overflow.

commit b5229a4ef4c6a3ab6d23482211c7607c54044f12
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Thu Aug 11 19:53:30 2022 -0700

    libsnmp: Fix a recently introduced potential integer overflow
    
    Fixes: d65925a9f8f6 ("libsnmp: Ignore invalid DISPLAY-HINT clauses")
    Fixes: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=50063

commit 09c00e9ff2311f1a69a97a4e7b394ac91e6aa0fb
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Sun Aug 7 20:26:29 2022 -0700

    libsnmp: Ignore invalid DISPLAY-HINT clauses
    
    This patch should
    fix https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=48802.

commit ed31ab4c83eb3c745e61222be0f4d06689a821a5
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Thu Jun 1 14:36:12 2023 -0700

    libsnmp: Fix a buffer overflow in sprint_realloc_hinted_integer()
    
    See also https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=59491.

commit fb63c4cbf9abbe4b3b3e8b9475bb6b9aca596c1d
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Wed May 31 17:02:59 2023 -0700

    agent/snmp_perl: Disable -Wcast-qual
    
    The Perl headers trigger many -Wcast-qual warnings. Hence disable -Wcast-qual
    around the Perl extension headers.

commit 3cec57d8c042619b83e97a45fff34475d314e4b1
Author: Niels Baggesen <nba@users.sourceforge.net>
Date:   Thu Jun 1 11:13:19 2023 +0200

    read_config.c: add missing newlines to DEBUGMSGTL calls

commit 20879e824851a7a188eac50fd34aac04113d7432
Author: Niels Baggesen <nba@users.sourceforge.net>
Date:   Thu Jun 1 11:12:34 2023 +0200

    snmplib: Handle two oldEngineID lines in snmpd.conf. Fixes #578

commit 055d3801e0b93c552d77645288b2422b2595e2f4
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Wed May 31 15:49:05 2023 -0700

    ci, Windows: Bump the OpenSSL version number

commit b208ebecc9381718b801c9d9ddfc5cc7546633f5
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Wed May 31 07:18:26 2023 -0700

    snmpd: Move a comment block
    
    The preprocessor constant MIB_CLIENTS_ARE_EVIL is used in source file
    old_api.c but not in snmp_vars.c. Hence move the comment block that
    explains the role of that preprocessor constant.

commit 2f95d30e632d2c2ab3add875f2eee1e186d8209f
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Wed May 31 07:07:30 2023 -0700

    libsnmp: Clean up netsnmp_old_api_helper()
    
    Combine the initialization and declaration of variable 'vp' such that it
    can be declared const. Remove 'vp &&' because it causes some static checkers
    to report a "dereference before checked" warning.
    
    Fixes: https://github.com/net-snmp/net-snmp/pull/487

commit dc103aa62a6bee2b5cef6085af69d96b65c7a5f9
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Fri May 26 19:21:55 2023 -0700

    agent/mibgroup/util_funcs: Align netsnmp_get_link_settings() with master branch

commit 7594e24375c26641c36a6272970579042c350de4
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Fri May 26 14:43:04 2023 -0700

    agent/mibgroup/util_funcs: Fix a compiler warning
    
    Fix the following clang compiler warning:
    
    mibgroup/util_funcs.c:1249:42: warning: field 'elinkset' with variable sized type 'struct ethtool_link_settings' not at the end of a struct or class is a GNU extension [-Wgnu-variable-sized-type-not-at-end]
                struct ethtool_link_settings elinkset;
    
    Additionally, increase mask_nwords from 4 to 8.

commit 7a1220567ec68805713eb2dd782424537f1f0de4
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Fri May 26 14:42:55 2023 -0700

    libsnmp: Fix a compiler warning

commit 5192261e49957438d6f18b4f3104cdac49fbd28f
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Tue Aug 30 20:39:32 2022 -0700

    apps/snmptrap: Initialize the variable 'ss'
    
    Fixes: 21b16eba6024 ("apps: Use netsnmp_cleanup_session()")

commit 7d5ad2312d849adbed63f23a781049024df8675b
Author: Phil O <github@linuxace.com>
Date:   Wed May 25 10:58:23 2022 -0700

    HOST-MIB: Add ignoremount config option
    
    Fixes: https://github.com/net-snmp/net-snmp/pull/424
    
    [bvanassche: edited patch description; moved a declaration of a global
    variable from a .c into a .h file and renamed match_mount_config() into
    ignore_mount_point().]

commit 8e02f6c2df8dc929a2f89b71be4de31003a79986
Author: Phil O <github@linuxace.com>
Date:   Wed May 25 11:21:40 2022 -0700

    HOST-MIB: Add virtiofs to other_fs

commit 298c8103db80b292791616af4fd497342a71867f
Author: Josef Řídký <jridky@redhat.com>
Date:   Wed May 24 10:49:41 2023 +0200

    libsnmp, UDP transport: Fix sendmsg() error code handling
    
    This change has been made because of Linux kernel commit "ipv4: Return
    -ENETUNREACH if we can't create route but saddr is valid"
    (https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=595e0651d029)
    
    Fixes: https://github.com/net-snmp/net-snmp/issues/564
    Fixes: https://github.com/net-snmp/net-snmp/pull/576
    
    [ bvanassche: edited commit message ]

commit 9df89dc4cf04d27c230736da7d66e3b43911864c
Author: Niels Baggesen <nba@users.sourceforge.net>
Date:   Mon May 22 21:33:28 2023 +0200

    interface_linux.c: defined dummy PCI_NONRET if needed (CentOS7)

commit 8c930d7242b8121cf9f8646d4519aefd8956b30e
Author: Niels Baggesen <nba@users.sourceforge.net>
Date:   Mon May 22 21:31:46 2023 +0200

    apps/Makefile.in: snmpps compiles without libcurses (always have)

commit 76fae1a91eb70ce8231e16e8323a9bf7d8ac62d3
Author: Niels Baggesen <nba@users.sourceforge.net>
Date:   Mon May 22 21:30:21 2023 +0200

    etherStatsTable_interface.c: fix a compare of unsigned < 0

commit 47ea381e97ff551fd530b6a3eee59451905a864e
Author: Niels Baggesen <nba@users.sourceforge.net>
Date:   Mon May 22 21:24:35 2023 +0200

    mibII/ipv6.c: remove unused variables

commit cee200127b43b2858454851390b69551c144bbd3
Author: Niels Baggesen <nba@users.sourceforge.net>
Date:   Mon May 22 21:23:26 2023 +0200

    RUNFULLTESTS: correct a reference to srcdir to builddir

commit 97df191ff8b16bdc53ba95d2a1c064d2a4666ae6
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Sat Oct 8 19:26:01 2022 -0700

    OS/X: Fix the build
    
    Apparently the __fd_mask type has been removed on OS/X. Hence this patch.

commit 0d7022df5cffe44227ab228dcf1fbbc725348138
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Fri Sep 16 15:06:14 2022 -0700

    libsnmp: Fix undefined behavior in large_fd_set.c

commit 08d6f301ba025caad18f2ce60f9bb2700b61c087
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Fri May 12 09:59:57 2023 -0700

    testing/fulltests/support/simple_TESTCONF.sh: Support disabling limits
    
    If NET-SNMP is built with address sanitizer support, the tests fail as follows
    if memory is limited:
    ==225838==ERROR: AddressSanitizer failed to allocate 0xdfff0001000 (15392894357504) bytes at address 2008fff7000 (errno: 12)
    ==225838==ReserveShadowMemoryRange failed while trying to map 0xdfff0001000 bytes. Perhaps you're using ulimit -v
    
    Hence add support for disabling runtime limits.

commit 6fcef3ba7f9cfc9358553cee4e8121841e06278f
Author: Niels Baggesen <nba@users.sourceforge.net>
Date:   Fri May 12 12:55:32 2023 +0200

    snmpIPv4BaseDomain: fix a leak (shows up with agentx)

commit a3caa31fc076edae80e6b78667baac92db3493a7
Author: Niels Baggesen <nba@users.sourceforge.net>
Date:   Fri May 12 09:41:51 2023 +0200

    config_net_snmp_config_h: add missing defines for DragonFlyBSD

commit 042deb1731edc311ef5dbc7f01a8ec045285fbe6
Author: Niels Baggesen <nba@users.sourceforge.net>
Date:   Fri May 12 09:40:38 2023 +0200

    mibsY/rfclist: correct rfcs for DS1/DS3-mibs

commit b23b7fc60ad668c4265a694ebd001504bc206829
Author: Niels Baggesen <nba@users.sourceforge.net>
Date:   Fri May 12 09:39:40 2023 +0200

    traceRouteCtlTable: fix a possible simple return in a non-void function

commit b14b5749892b48081c481dab1bb8ce998be0acdd
Author: Niels Baggesen <nba@users.sourceforge.net>
Date:   Fri May 12 09:38:05 2023 +0200

    Rmon/alarmTable: implement shutdown handler

commit 2d710d2e3de9c81f60740eb7a965d7c8991474b5
Author: Niels Baggesen <nba@users.sourceforge.net>
Date:   Fri May 12 09:36:17 2023 +0200

    agent/extend: fix cleanup at shutdown

commit d6a1af15777981a20778260c25245f36bf7c25a6
Author: Niels Baggesen <nba@users.sourceforge.net>
Date:   Fri May 12 09:34:57 2023 +0200

    apps/snmpusm: fix a memory leak

commit 9e9da9d092eca13ef23570d3e78fc6bdfb456ae0
Author: Niels Baggesen <nba@users.sourceforge.net>
Date:   Wed May 10 10:06:31 2023 +0200

    Yet another #if HAVE_xxx example

commit 2c7bdeda7a54516f6bcb9b26a0bd5058bdb742ef
Author: Niels Baggesen <nba@users.sourceforge.net>
Date:   Wed May 10 10:02:41 2023 +0200

    Use configured [ef]grep to avoid warnings about deprecation

commit ca2334a0cc4e684edcbf1094b19b376c147ee94a
Author: Niels Baggesen <nba@users.sourceforge.net>
Date:   Wed May 10 09:58:08 2023 +0200

    snmpps: add calls to netsnmp_cleanup_session

commit c4f0619e9d1e26aaf1d8332386c296b109fc514f
Author: Niels Baggesen <nba@users.sourceforge.net>
Date:   Wed May 10 09:57:12 2023 +0200

    Fix leak in snmpTargetAddrTable

commit 0a244ec94ea46a789bb3b867e632417f8781370b
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Sat Apr 22 18:20:54 2023 -0700

    testhandler: Fix memory leaks at exit time

commit e42be3a74eb83c270b91feac1e28e9f68f7e5c76
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Thu Sep 15 14:18:17 2022 -0700

    testhandler: Fix memory leaks

commit d84ccab2377aaaa402be1e58f92d2543b577d9c5
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Fri Sep 16 14:48:33 2022 -0700

    testhandler: Declare a local variable static

commit 0dc31dd059913f5d32c1fee3fb8f8a0987307eb2
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Sat Apr 22 18:20:59 2023 -0700

    SNMP-TLS-TM-MIB: Fix leaks at exit time

commit 918a733bb8c4e03b042a5724cb194662d3924e7b
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Sun Apr 23 14:03:32 2023 -0700

    SNMP-TLS-TM-MIB: Reorder function definitions

commit 537c7a6f6fc80b42240781ce45a06febe0567bba
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Sat Apr 22 17:32:15 2023 -0700

    LM-SENSORS-MIB: Fix memory leaks at exit time

commit 18ed7614451b40db393da4e57dfbcb8b96fe5a01
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Fri Apr 21 16:49:56 2023 -0700

    LM-SENSORS-MIB: Reorder function definitions

commit 57d8dcb825c30f6f20941760863a1c8d671a7e8d
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Fri Apr 21 16:17:01 2023 -0700

    DISMAN-EXPRESSION-MIB: Fix memory leaks at exit time

commit dbb52d271d6bee9f162b9c6abe16ddbd064107f3
Author: Niels Baggesen <nba@users.sourceforge.net>
Date:   Mon May 1 21:40:57 2023 +0200

    Fix issue #554 "All commands crash when using -Op"

commit 4d3cd42e6acf55e640abef68daf567ddad3107ae
Author: Niels Baggesen <nba@users.sourceforge.net>
Date:   Mon May 1 21:38:18 2023 +0200

    Another few #if HAVE_xxx and similar fixes

commit 536a09f70b859676b420781f5c73448f7fe7e2b9
Author: Niels Baggesen <nba@users.sourceforge.net>
Date:   Mon May 1 21:36:53 2023 +0200

    Fixes for DragonflyBSD TCP and UDP tables

commit 575dc2129d5707e1f57fefd145dc0a3085018387
Author: Niels Baggesen <nba@users.sourceforge.net>
Date:   Mon May 1 21:35:15 2023 +0200

    Additional fix for build outside source directgory

commit 3eb9ba9f053ea9c8f23c468c77568e125641b745
Author: Niels Baggesen <nba@users.sourceforge.net>
Date:   Mon May 1 21:34:19 2023 +0200

    Remove or hide unused variables

commit 99763268d8e937360ecc618b771c236a8493ec15
Author: Wes Hardaker <opensource@hardakers.net>
Date:   Sat Apr 29 01:33:06 2023 -0700

    version update for 5.9.4.pre3

commit de0217a7698bf9e9fbeaa927f3b0761cbb3a269d
Author: Wes Hardaker <opensource@hardakers.net>
Date:   Sat Apr 29 01:26:11 2023 -0700

    Version number update: 5.9.4.pre3


----------------------------------------------------------------------

Changes: V5.9.4.pre2 -> V5.9.4.pre3

commit de0217a7698bf9e9fbeaa927f3b0761cbb3a269d
Author: Wes Hardaker <opensource@hardakers.net>
Date:   Sat Apr 29 01:26:11 2023 -0700

    Version number update: 5.9.4.pre3

commit 265127456b431b5547a873b8cf6e564938550a6b
Author: Wes Hardaker <opensource@hardakers.net>
Date:   Sat Apr 29 01:23:09 2023 -0700

    Revert "Set flags in MakefileSubs.pm at configure time"
    
    This reverts commit 7e7ce5a6567c47822410a4683be26d2c0fb8b6cc.

commit b29c63d12f7298c0e2c31d8e35fc5c2d87d05b7b
Author: Chris Adams <linux@cmadams.net>
Date:   Mon Mar 13 17:34:17 2023 -0500

    Set flags in MakefileSubs.pm at configure time
    
    Setting the flags at configure time instead of runtime allows use of the
    perl module without pulling in net-snmp-config (which in the Fedora/RHEL
    RPM setup also pulls in gcc and *-devel packages, not otherwise needed
    when just using the perl SNMP module).  The in-tree module is updated
    with the rest of the net-snmp code anyway, so setting this at configure
    time should stay consistent.
    
    Signed-off-by: Chris Adams <linux@cmadams.net>

commit 50c53277b500c0ee18edb7994e73033ff8020f80
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Tue May 5 10:30:32 2020 -0700

    libsnmp: Fix handling of the -a and -x app command line options
    
    Since snmp_free_session() frees securityAuthProto and securityPrivProto,
    allocate these two session members dynamically.
    
    Fixes: 670d4234b519 ("First pass at an SNMPv3 "combined-option" command-line flag (-3x)").

commit 21b16eba60245bc84149d338a9700e5915bda292
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Sun Aug 28 18:11:49 2022 -0700

    apps: Use netsnmp_cleanup_session()
    
    Backport from master.
    
    Free the memory allocated by netsnmp_parse_args() before exiting. This reduces
    the number of memory leaks reported by tools like LeakSanitizer.
    
    Ensure that netsnmp_parse_args() only stores pointers to dynamically allocated
    memory in the session object.

commit 72ec58d82b7ddf64b84da2c072f34800c4350fef
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Sun Aug 28 18:11:31 2022 -0700

    libsnmp: Introduce netsnmp_cleanup_session()
    
    Free all memory owned by a session instead of only a subset of the memory owned
    by a session.
    
    Conflicts:
            include/net-snmp/library/snmp_api.h

commit e8ea0cb1bcc9b96e37895951eb46f04719a10f96
Author: Niels Baggesen <nba@users.sourceforge.net>
Date:   Thu Apr 20 12:06:14 2023 +0200

    Fix for OpenBSD 7.3

commit 461afde75ac0eb8cafbb523c00762ed96a8e15ea
Author: Niels Baggesen <nba@users.sourceforge.net>
Date:   Thu Apr 20 12:02:58 2023 +0200

    Not all make's honor VPATH srcdir. FreeBSD is the culprit here.

commit add75e011eaebee9eca30dd1aac4b9ab282d1626
Author: Niels Baggesen <nba@users.sourceforge.net>
Date:   Thu Apr 20 11:54:59 2023 +0200

    Fix missing free detected by -fsanitize=address

commit cb88cd0809d6be22e7bfb41333c48a171ba91a8f
Author: Andy Fiddaman <omnios@citrus-it.co.uk>
Date:   Fri Jul 29 15:39:13 2022 +0000

    testing/fulltests/support/simple_eval_tools.sh: support non-GNU getopt
    
    Not all implementations of getopt() handle options appearing after
    operands. POSIX doesn't require that, it's a GNU extension.
    Running the testsuite from version 5.9.2+ on such a system results in
    even simple tests failing as the agent attempts to find to port "-f"

commit 0ab769060f6cc12b3e3bcd4ad914b784bfb5cfb0
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Sun Apr 16 15:05:47 2023 -0700

    perl: Check the size of output buffers
    
    Use snprintf() instead of sprintf() for converting an OID into an ASCII
    string.

commit d3f1271a7e5c7b1087c69b0e9fa3a6b16b0dc8b5
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Sun Apr 16 14:12:47 2023 -0700

    configure: Change AC_TRY_COMPILE() into AC_COMPILE_IFELSE()
    
    Make this change because the former macro is obsolete. This patch does
    not change the configure script.

commit a2cb167514ac0c7e1b04e8f151e0b015501362e0
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Sun Apr 16 14:09:24 2023 -0700

    configure: Require that config_() macros are terminated with a semicolon

commit 85cedab5a26f00b8e4a2f42d2e8e37cde546e22d
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Sat Apr 15 15:35:42 2023 -0700

    Terminate all config_*() macro invocations with a semicolon
    
    This patch has been generated by running the following commands:
    
    replace-in-files '^\([[:blank:]]*config_[^,*]*)\)[[:blank:]]*$' '\1;' $(git grep -l '^config_')
    replace-in-files '^\([[:blank:]]*config_version_require.*)\)[[:blank:]]*$' '\1;' $(git grep -l '^config_')

commit 4e593010ef224f3b91fb7c5966788530d9393547
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Sun Apr 16 07:28:35 2023 -0700

    libsnmp, agent, MIBs: Fix multiple buffer overflows

commit 1d738930b09fa9ae651881ed38d94c61c3c88060
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Sun Apr 16 07:28:35 2023 -0700

    libsnmp: Fix a buffer overflow in the MIB parsing code
    
    Fix the following address sanitizer complaint:
    
    ERROR: AddressSanitizer: stack-buffer-overflow on address 0x7f4e612001a0 at pc 0x7f4e63c0a654 bp 0x7ffc98f7bb80 sp 0x7ffc98f7bb78
    WRITE of size 1 at 0x7f4e612001a0 thread T0
        #0 0x7f4e63c0a653 in get_token snmplib/parse.c:4835:13
        #1 0x7f4e63c0a4a2 in get_token snmplib/parse.c:4813:20
        #2 0x7f4e63c0a4a2 in get_token snmplib/parse.c:4813:20
        #3 0x7f4e63c0a4a2 in get_token snmplib/parse.c:4813:20
        #4 0x7f4e63c0a4a2 in get_token snmplib/parse.c:4813:20
        #5 0x7f4e63c0a4a2 in get_token snmplib/parse.c:4813:20
        #6 0x7f4e63c0a4a2 in get_token snmplib/parse.c:4813:20
        #7 0x7f4e63c2dbd2 in parse_ranges snmplib/parse.c:2282:20
        #8 0x7f4e63c29ffa in parse_asntype snmplib/parse.c:2462:27
        #9 0x7f4e63c1789f in parse snmplib/parse.c:4598:19
        #10 0x7f4e63c0497b in read_module_internal snmplib/parse.c:3942:18
        #11 0x7f4e63c0407b in netsnmp_read_module snmplib/parse.c:4041:14
        #12 0x7f4e63c0d5e1 in read_mib snmplib/parse.c:5044:12
        #13 0x55ec21ab37b1 in main testing/fulltests/unit-tests/T027read_mib_clib.c:35:1
    
    Fixes: 34058af3990b ("*/*: replace horrible (char *)"string" with const specifiers in relevant  functions.")

commit f065858b75b7eb10a596a9e5ab0f638cf119209f
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Sun Apr 16 07:24:14 2023 -0700

    libsnmp: Declare the get_token() input arguments const

commit f503e1722960a3b75a86b96c9eb999c8cf5b7b19
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Sun Apr 16 07:45:02 2023 -0700

    libsnmp: Do not pass NULL pointers to memcmp()

commit 3644e682f1ae4e0dc7ab0b33600ef0aead48a86a
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Sat Apr 15 16:26:09 2023 -0700

    libsnmp: Make sure that the memcmp() arguments are not NULL

commit 14150d3e4dbaccaeb347ca56200929735c6d7f51
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Sat Apr 15 16:11:20 2023 -0700

    testing/fulltests/unit-tests/T018read_config_capp.c: Fix a function declaration
    
    This patch fixes a clang compiler warning.

commit fcb439310eb765c90f4a149116690a1e063a04ca
Author: Niels Baggesen <nba@users.sourceforge.net>
Date:   Wed Apr 12 12:40:09 2023 +0200

    Yet another round of #if HAVE_XXX fixes
    
    Some lines that did not follow my simplistic patterns for automatic patching.

commit 2df051f3176c77eab6633fca87e0869e545d9945
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Sat Apr 8 14:43:29 2023 -0700

    Run autoreconf -ivf
    
    Autoconf version: 2.71
    Automake version: 1.16
    Libtool version:  2.4.6

commit e7a268a2ee453d2fa3a364a4bf605b0e6b2d3ae9
Author: Niels Baggesen <nba@users.sourceforge.net>
Date:   Thu Apr 6 13:39:58 2023 +0200

    Update rfclist/Makefile.mib for new IP-TRAFFIC-FLOW-SECURITY-MIB and forgotten SNMP-SSH-TM-MIB


----------------------------------------------------------------------

Changes: V5.9.3 -> V5.9.4.pre2

commit cc275e9a0eaf639dbee2af934419cdcc3fd2881e
Author: Wes Hardaker <opensource@hardakers.net>
Date:   Mon Apr 3 15:06:49 2023 -0700

    autoconf update

commit 428605d00fea8df9a7b8ca14d15ffbdc8b1d4c64
Author: Wes Hardaker <opensource@hardakers.net>
Date:   Mon Apr 3 14:54:04 2023 -0700

    version bump and autoconf bump

commit a739ce6740445d2d2991e2effa1f97c995f5ff0d
Author: Wes Hardaker <opensource@hardakers.net>
Date:   Mon Apr 3 14:53:31 2023 -0700

    version update for 5.9.4.pre2

commit fcd3b9c7e04398f2f3bfa686f8ff1141cbc1eaf9
Author: Wes Hardaker <opensource@hardakers.net>
Date:   Mon Apr 3 14:52:02 2023 -0700

    new-key

commit 9d1c6c02ef7db23e7e894436fcc5b25b758d88b9
Author: Wes Hardaker <opensource@hardakers.net>
Date:   Mon Apr 3 14:41:55 2023 -0700

    changes

commit 6c5bf52dac1ea53b302d523093572fea54cd5d16
Author: Wes Hardaker <opensource@hardakers.net>
Date:   Mon Apr 3 14:41:02 2023 -0700

    autoconf update

commit b4b5fa2f20d8d41f24e778aac0034678508ea71b
Author: Wes Hardaker <opensource@hardakers.net>
Date:   Mon Apr 3 14:40:30 2023 -0700

    changelog update

commit 763e50c1ee89181b1337c2fbdae229884d9facc3
Author: Wes Hardaker <opensource@hardakers.net>
Date:   Mon Apr 3 13:53:02 2023 -0700

    Version number update: 5.9.4.pre1

commit 5846d75426d79a4866411a8768e1effcc4aa808e
Author: Wes Hardaker <opensource@hardakers.net>
Date:   Mon Apr 3 13:49:52 2023 -0700

    revision bump

commit 5840d13ad70607bce15b4ed5cf744a66fd8147c0
Author: Wes Hardaker <opensource@hardakers.net>
Date:   Mon Apr 3 13:46:24 2023 -0700

    autoconf-update

commit 3e918def0de65d5a70239df76588ef2d540c9fb0
Author: Wes Hardaker <opensource@hardakers.net>
Date:   Mon Apr 3 13:45:46 2023 -0700

    bump autoconf version

commit 1efe6dfbd1169550e0c4b625324b6de3702676b6
Author: Wes Hardaker <opensource@hardakers.net>
Date:   Mon Apr 3 13:40:49 2023 -0700

    fix name from snmpbulkget -> snmpbulkwalk

commit c4ed481ffcc64883f135578291c0c34f08415865
Author: Niels Baggesen <nba@users.sourceforge.net>
Date:   Thu Mar 30 12:25:21 2023 +0200

    More "#if HAVE_xxx fixes.
    My original script did not consider blanks between # and if/elif

commit 36c2d1dbbb3503614ed5e339ad365411535c6d24
Author: Niels Baggesen <nba@users.sourceforge.net>
Date:   Thu Mar 9 15:15:14 2023 +0100

    Change "#if HAVE_XXX" into "#ifdef HAVE_XXX"
    
    This fixes a bunch of -Wundef warnings.
    
    [ bvanassche: changed patch subject / restored consistency of the MSVC config
      header files ]

commit 28d127bc71b77220acd94d3cd8ae65f0580263f2
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Wed Mar 8 16:28:04 2023 -0800

    libsnmp: Remove the ERR_GET_FUNC() macro
    
    ERR_GET_FUNC() has been removed from the OpenSSL 3.0 headers. See also
    https://github.com/net-snmp/net-snmp/issues/539.
    
    See also https://github.com/net-snmp/net-snmp/issues/539.

commit baaf82808833ea6eaf254590f9e5cfcc02ef1b39
Author: Niels Baggesen <nba@users.sourceforge.net>
Date:   Mon Feb 27 21:59:16 2023 +0100

    Fixes for OpenBSD 7

commit 906a1e8b92029564341f0768390a02203459561f
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Sat Feb 25 16:47:19 2023 -0800

    configure: Add support for FreeBSD jails
    
    See also https://github.com/net-snmp/net-snmp/issues/280.

commit b0f82764f4ab0b8c6d93378a9b5c2927f2b09509
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Sat Feb 25 16:34:39 2023 -0800

    Spelling: Change 'demon' into 'daemon'
    
    From https://en.wikipedia.org/wiki/Daemon_(computing):
    
    Many people equate the word "daemon" with the word "demon", implying some
    kind of satanic connection between UNIX and the underworld. This is an
    egregious misunderstanding. "Daemon" is actually a much older form of
    "demon"; daemons have no particular bias towards good or evil, but rather
    serve to help define a person's character or personality. The ancient
    Greeks' concept of a "personal daemon" was similar to the modern concept of
    a "guardian angel"-eudaemonia is the state of being helped or protected by a
    kindly spirit. As a rule, UNIX systems seem to be infested with both daemons
    and demons.

commit 24b587b2481acfb878ede6c08bfbd581a21ad1d3
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Thu Feb 23 13:25:52 2023 -0800

    ci, Windows: Bump the OpenSSL version number

commit 91673b10bac84230d8e4964abfab39d31a4e736f
Author: David Rothenberger <daveroth@acm.org>
Date:   Sat Mar 10 21:37:06 2018 +0000

    Cygwin: Use ':' for the path separator
    
    [ bvanassche: edited subject and regenerated the configure script ]

commit 2d1ab96c6b46843c593b54a15ff286fcfe9711a5
Author: Niels Baggesen <nba@users.sourceforge.net>
Date:   Thu Feb 23 11:37:55 2023 +0100

    Updates for NetBSD 10 (now in Beta)
    
    Some of these inspired by (taken from) gthe NetBSD pkgsrc patches.

commit f3c859515e916cdee899255df372a9045b63a82a
Author: Niels Baggesen <nba@users.sourceforge.net>
Date:   Tue Jan 31 12:47:09 2023 +0100

    mibs: Add missing REVISION clause to UCS-DNMP-mib

commit a97098802ae027eb798ab33c6e56b709a870a473
Author: Niels Baggesen <nba@users.sourceforge.net>
Date:   Tue Jan 31 12:09:16 2023 +0100

    mibs: IANAifType-MIB, IANA-ADDRESS-FAMILY-NUMBERS-MIB
    
    Update IANAifType-MIB, IANA-ADDRESS-FAMILY-NUMBERS-MIB to current
    IANA versions.

commit 7e9ec86c929033fc65dd531802ae987cdde04a2a
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Wed Dec 21 16:42:02 2022 -0800

    win32/dist/build-binary.pl: Improve this script
    
    Use the MSYS gzip executable if gzip is not in the path. Change the OpenSSL
    path from the OpenSSL 1 path into the OpenSSL 3 path.

commit 65709b0b201b6890446e50485a77f27696d285c4
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Wed Dec 21 17:08:52 2022 -0800

    ci/perl.bat: Fix a syntax error

commit 49816b48332567d54e1e4d8ce4ac4c42e6c71582
Author: Peter Korsgaard <peter@korsgaard.com>
Date:   Tue Dec 13 15:03:37 2022 +0100

    ipaddress_ioctl.c: unbreak builds with IPv6 but no rtnetlink
    
    netsnmp_access_other_info_get() is only available on setups with rtnetlink,
    so protect the caller with HAVE_LINUX_RTNETLINK_H as well to fix a linking
    issue:
    
    ipaddress_ioctl.c:(.text+0x3be): undefined reference to `netsnmp_access_other_info_get'
    
    Signed-off-by: Peter Korsgaard <peter@korsgaard.com>

commit 1d4d3c7045a1ba6eab28a0aee47b604d62481b68
Author: Peter Korsgaard <peter@korsgaard.com>
Date:   Tue Dec 13 12:41:04 2022 +0100

    ipaddress_linux.c: unbreak builds without HAVE_LINUX_RTNETLINK_H
    
    Commit 89a7860829fdc618ef (IP-MIB: Fix the --disable-ipv6 build) moved
    defines around to fix builds without IPv6 support, but accidently caused
    netsnmp_access_other_info_get() to be visible even if HAVE_LINUX_RTNETLINK_H
    isn't defined, leading to build issues:
    
    mibgroup/ip-mib/data_access/ipaddress_linux.c: In function ‘netsnmp_access_other_info_get’:
    mibgroup/ip-mib/data_access/ipaddress_linux.c:439:28: error: field ‘n’ has incomplete type
                struct nlmsghdr n;
                                ^
    mibgroup/ip-mib/data_access/ipaddress_linux.c:440:29: error: field ‘r’ has incomplete type
                struct ifaddrmsg r;
                                 ^
    mibgroup/ip-mib/data_access/ipaddress_linux.c:454:40: error: ‘NETLINK_ROUTE’ undeclared (first use in this function)
        sd = socket(PF_NETLINK, SOCK_DGRAM, NETLINK_ROUTE);
                                            ^~~~~~~~~~~~~
    mibgroup/ip-mib/data_access/ipaddress_linux.c:454:40: note: each undeclared identifier is reported only once for each function it appears in
    mibgroup/ip-mib/data_access/ipaddress_linux.c:461:22: warning: implicit declaration of function ‘NLMSG_LENGTH’; did you mean ‘CMSG_LEN’? [-Wimplicit-function-declaration]
        req.n.nlmsg_len = NLMSG_LENGTH(sizeof(struct ifaddrmsg));
                          ^~~~~~~~~~~~
                          CMSG_LEN
    mibgroup/ip-mib/data_access/ipaddress_linux.c:461:42: error: invalid application of ‘sizeof’ to incomplete type ‘struct ifaddrmsg’
        req.n.nlmsg_len = NLMSG_LENGTH(sizeof(struct ifaddrmsg));
                                              ^~~~~~
    
    Fix it by also enclosing it within the RTNETLINK and IPV6 guards, similar to
    netsnmp_access_ipaddress_extra_prefix_info().  Given that are already inside
    an IPV6 conditional just above and below, simply reuse that for simplicity.
    
    Signed-off-by: Peter Korsgaard <peter@korsgaard.com>

commit 15f9d7f7e5b90c9b419832ed8e6413feb6570d83
Author: Bill Fenner <fenner@gmail.com>
Date:   Fri Nov 25 10:23:32 2022 -0800

