aboutsummaryrefslogtreecommitdiffstats
path: root/lib/snmp/src/misc
diff options
context:
space:
mode:
authorZandra Hird <[email protected]>2015-04-10 12:41:56 +0200
committerZandra Hird <[email protected]>2015-04-10 12:41:56 +0200
commit2801f3dae373f1cf22f8a7113f1a53cd242ed62f (patch)
tree9e11a9258d0f5483b155c168f5c405d4804e1203 /lib/snmp/src/misc
parentf54392bc3c811d44cef2b31c20cac9fb11bf38e1 (diff)
downloadotp-2801f3dae373f1cf22f8a7113f1a53cd242ed62f.tar.gz
otp-2801f3dae373f1cf22f8a7113f1a53cd242ed62f.tar.bz2
otp-2801f3dae373f1cf22f8a7113f1a53cd242ed62f.zip
fix snmp_conf check imask bug
This change is originally from John Heizenberg.
Diffstat (limited to 'lib/snmp/src/misc')
-rw-r--r--lib/snmp/src/misc/snmp_conf.erl2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/snmp/src/misc/snmp_conf.erl b/lib/snmp/src/misc/snmp_conf.erl
index 153c8070c2..c456ed3b9b 100644
--- a/lib/snmp/src/misc/snmp_conf.erl
+++ b/lib/snmp/src/misc/snmp_conf.erl
@@ -1004,6 +1004,8 @@ check_imask(IMask) when is_list(IMask) ->
do_check_imask(IMask),
{ok, IMask}.
+do_check_imask([]) ->
+ ok;
do_check_imask([0|IMask]) ->
do_check_imask(IMask);
do_check_imask([1|IMask]) ->