CLEANUP: ssl: remove check on srv->proxy
Remove a useless check on srv->proxy which triggers coverity. Should fix issue #1965.
This commit is contained in:
parent
02cf4ecb5a
commit
04007cb08d
@ -5231,7 +5231,7 @@ int ssl_sock_prepare_srv_ctx(struct server *srv)
|
|||||||
SSL_CTX *ctx;
|
SSL_CTX *ctx;
|
||||||
/* Automatic memory computations need to know we use SSL there
|
/* Automatic memory computations need to know we use SSL there
|
||||||
* If this is an internal proxy, don't use it for the computation */
|
* If this is an internal proxy, don't use it for the computation */
|
||||||
if (!(srv->proxy && srv->proxy->cap & PR_CAP_INT))
|
if (!(srv->proxy->cap & PR_CAP_INT))
|
||||||
global.ssl_used_backend = 1;
|
global.ssl_used_backend = 1;
|
||||||
|
|
||||||
/* Initiate SSL context for current server */
|
/* Initiate SSL context for current server */
|
||||||
|
Loading…
Reference in New Issue
Block a user