diff --git a/src/ssl_crtlist.c b/src/ssl_crtlist.c index f43982f4d..56d2bc4c9 100644 --- a/src/ssl_crtlist.c +++ b/src/ssl_crtlist.c @@ -537,7 +537,7 @@ int crtlist_parse_file(char *file, struct bind_conf *bind_conf, struct proxy *cu if (*crt_path != '/' && global_ssl.crt_base) { if ((strlen(global_ssl.crt_base) + 1 + strlen(crt_path)) > sizeof(path) || - snprintf(path, sizeof(path), "%s/%s", global_ssl.crt_base, crt_path)) { + snprintf(path, sizeof(path), "%s/%s", global_ssl.crt_base, crt_path) > sizeof(path)) { memprintf(err, "parsing [%s:%d]: '%s' : path too long", file, linenum, crt_path); cfgerr |= ERR_ALERT | ERR_FATAL;