From: Dmitry Belyavskiy Date: Sat, 21 Sep 2019 13:23:11 +0000 (+0300) Subject: Coveruty CID253284 X-Git-Tag: v3.0.0~268 X-Git-Url: http://wagner.pp.ru/gitweb/?a=commitdiff_plain;h=01cd4a8ee6f92239c4cc36364e24d14e12933ab5;p=openssl-gost%2Fengine.git Coveruty CID253284 --- diff --git a/gost_ctl.c b/gost_ctl.c index 889df6d..2dfb29a 100644 --- a/gost_ctl.c +++ b/gost_ctl.c @@ -59,7 +59,7 @@ int gost_control_func(ENGINE *e, int cmd, long i, void *p, void (*f) (void)) const char *get_gost_engine_param(int param) { char *tmp; - if (param < 0 || param > GOST_PARAM_MAX) + if (param < 0 || param >= GOST_PARAM_MAX) return NULL; if (gost_params[param] != NULL) { return gost_params[param];