Fix the libsmi workaround by adding missing brackets.

From Grzegorz Głowacki <g.glowacki@wasko.pl>

svn path=/trunk/; revision=34280
This commit is contained in:
Balint Reczey 2010-09-29 15:46:35 +00:00
parent 72ac77046f
commit 6094889963
1 changed files with 2 additions and 2 deletions

View File

@ -623,7 +623,7 @@ static void register_mibs() {
* workaround for libsmi versions where this problem is fixed.
* Currently there is no such version. :-(
*/
if (smiModule->conformance == 1)
if (smiModule->conformance == 1) {
if (!prefs.suppress_smi_errors) {
report_failure("Stopped processing module %s due to "
"error(s) to prevent potential crash in libsmi.\n"
@ -632,7 +632,7 @@ static void register_mibs() {
smiModule->name, smiModule->conformance);
}
continue;
}
for (smiNode = smiGetFirstNode(smiModule, SMI_NODEKIND_ANY);
smiNode;
smiNode = smiGetNextNode(smiNode, SMI_NODEKIND_ANY)) {