DNP3: minor cleanup

pull/2391/head
Victor Julien 9 years ago
parent 7cf231c7ec
commit 5dc9c1b874

@ -186,7 +186,7 @@ static int DetectDNP3FuncParseFunctionCode(char *str, uint8_t *fc)
if (ByteExtractStringUint8(fc, 10, strlen(str), str) >= 0) {
return 1;
}
else {
/* Lookup by name. */
for (size_t i = 0;
i < sizeof(DNP3FunctionNameMap) / sizeof(DNP3Mapping); i++) {
@ -195,7 +195,6 @@ static int DetectDNP3FuncParseFunctionCode(char *str, uint8_t *fc)
return 1;
}
}
}
return 0;
}

Loading…
Cancel
Save