diff --git a/src/ssl_sock.c b/src/ssl_sock.c index ce1712d4f..8169d7838 100644 --- a/src/ssl_sock.c +++ b/src/ssl_sock.c @@ -2543,14 +2543,14 @@ static int bind_parse_ciphers(char **args, int cur_arg, struct proxy *px, struct /* parse the "crt" bind keyword */ static int bind_parse_crt(char **args, int cur_arg, struct proxy *px, struct bind_conf *conf, char **err) { - char path[PATH_MAX]; + char path[MAXPATHLEN]; if (!*args[cur_arg + 1]) { memprintf(err, "'%s' : missing certificate location", args[cur_arg]); return ERR_ALERT | ERR_FATAL; } if ((*args[cur_arg + 1] != '/' ) && global.crt_base) { - if ((strlen(global.crt_base) + 1 + strlen(args[cur_arg + 1]) + 1) > PATH_MAX) { + if ((strlen(global.crt_base) + 1 + strlen(args[cur_arg + 1]) + 1) > MAXPATHLEN) { memprintf(err, "'%s' : path too long", args[cur_arg]); return ERR_ALERT | ERR_FATAL; }