Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:24
erlang
0860-snmp-Fix-optional-callbacks-check.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0860-snmp-Fix-optional-callbacks-check.patch of Package erlang
From 673abdddae987a7fdc795c67e0c3abca3c1468cb Mon Sep 17 00:00:00 2001 From: Lukas Larsson <lukas@erlang.org> Date: Tue, 3 Oct 2023 14:55:07 +0200 Subject: [PATCH 2/5] snmp: Fix optional callbacks check --- lib/snmp/src/misc/snmp_misc.erl | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/snmp/src/misc/snmp_misc.erl b/lib/snmp/src/misc/snmp_misc.erl index 18d5800651..291e35fcf2 100644 --- a/lib/snmp/src/misc/snmp_misc.erl +++ b/lib/snmp/src/misc/snmp_misc.erl @@ -84,7 +84,12 @@ verify_behaviour(Behaviour, UserMod) case (catch UserMod:module_info(exports)) of Exps when is_list(Exps) -> Callbacks = Behaviour:behaviour_info(callbacks), - (catch verify_behaviour2(Callbacks, Exps)); + OptionalCallbacks = + case Behaviour:behaviour_info(optional_callbacks) of + undefined -> []; + OC -> OC + end, + (catch verify_behaviour2(Callbacks -- OptionalCallbacks, Exps)); _ -> {error, {bad_module, UserMod}} end; -- 2.35.3
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor