Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not register already registered callback. #1

Merged

Conversation

EZenderink
Copy link
Owner

Fix for issues mentioned in net-snmp#312. If callback with function pointer is already registered, skip registration. If args are provided that are not already registered for that specific callback it will free the old args and register the new args for the existing callback.

Fix for issues mentioned in net-snmp#312.  If callback with function pointer is already registered, skip registration. If args are provided that are not already registered for that specific callback it will free the old args and register the new args for the existing callback.
@EZenderink EZenderink merged commit 6f43661 into #312-duplicate-callbacks-fix-v2 Jul 5, 2021
@EZenderink EZenderink deleted the #312-duplicate-callbacks-fix-1 branch July 5, 2021 09:34
EZenderink pushed a commit that referenced this pull request Sep 6, 2022
This patch fixes the following Coverity complaint:

CID 373821 (#1 of 1): Unchecked return value (CHECKED_RETURN)
check_return: Calling netsnmp_parse_ep_str without checking return value (as is done elsewhere 4 out of 5 times).
netsnmp_parse_ep_str(&ep_str, endpoint);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant