diff --git a/core/systemctrl/src/sctrl_se.c b/core/systemctrl/src/sctrl_se.c index 544954f84..f930d381e 100644 --- a/core/systemctrl/src/sctrl_se.c +++ b/core/systemctrl/src/sctrl_se.c @@ -72,7 +72,7 @@ SEConfig* sctrlSEGetConfig(SEConfig *config) SEConfig* sctrlSEGetConfigEx(SEConfig *config, int size) { if (config && size){ - if (size > sizeof(SEConfig)){ + if (size != sizeof(SEConfig)){ memset(config, 0, size); // can't process structure } else{