Projects
Eulaceura:Factory
net-snmp
_service:obs_scm:backport-snmplib-Handle-two-ol...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:backport-snmplib-Handle-two-oldEngineID-lines-in-snmpd.conf.-.patch of Package net-snmp
From 20879e824851a7a188eac50fd34aac04113d7432 Mon Sep 17 00:00:00 2001 From: Niels Baggesen <nba@users.sourceforge.net> Date: Thu, 1 Jun 2023 11:12:34 +0200 Subject: [PATCH] snmplib: Handle two oldEngineID lines in snmpd.conf. Fixes #578 Conflict:NA Reference:https://github.com/net-snmp/net-snmp/commit/20879e824851a7a188eac50fd34aac04113d7432 diff --git a/snmplib/snmpv3.c b/snmplib/snmpv3.c index 2dd527544f..be9256fa11 100644 --- a/snmplib/snmpv3.c +++ b/snmplib/snmpv3.c @@ -862,6 +862,11 @@ version_conf(const char *word, char *cptr) void oldengineID_conf(const char *word, char *cptr) { + if (oldEngineID) { + free(oldEngineID); + oldEngineID = NULL; + oldEngineIDLength = 0; + } read_config_read_octet_string(cptr, &oldEngineID, &oldEngineIDLength); } -- 2.33.0
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2