Commit 480e5b41 authored by Ian Bruene's avatar Ian Bruene
Browse files

Changed assocAddress handler to not cough and die on invalid value.

parent 28dde842
Pipeline #15875930 passed with stages
in 13 minutes and 14 seconds
......@@ -658,7 +658,15 @@ class DataSource: # This will be broken up in future to be less NTP-specific
pieces = addr.split(":")
pieces = []
srcadr = [int(x) for x in pieces]
srcadr = []
for x in pieces:
except ValueError:
# Have gotten x == "" before. Skip over.
# Still try to return data because it is potential
# debugging information.
return ax.Varbind(ax.VALUE_OCTET_STR, oid, srcadr)
return self.dynamicCallbackSkeleton(handler)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment