From 2801f3dae373f1cf22f8a7113f1a53cd242ed62f Mon Sep 17 00:00:00 2001 From: Zandra Hird Date: Fri, 10 Apr 2015 12:41:56 +0200 Subject: fix snmp_conf check imask bug This change is originally from John Heizenberg. --- lib/snmp/src/misc/snmp_conf.erl | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/snmp/src/misc') 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]) -> -- cgit v1.2.3