]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: ssl/ocsp: add spaces around operators
authorWilliam Lallemand <wlallemand@haproxy.org>
Thu, 22 Dec 2022 09:19:07 +0000 (10:19 +0100)
committerWilliam Lallemand <wlallemand@haproxy.org>
Thu, 22 Dec 2022 09:20:24 +0000 (10:20 +0100)
Add spaces around operators in ssl_ocsp_create_request_details().

src/ssl_ocsp.c

index 0f59325fafad4bd5fc643dc7c3c615534c13a8a1..bd9e07667f5ef1587f0d6d131bc8185c9f8afb75 100644 (file)
@@ -648,7 +648,7 @@ int ssl_ocsp_create_request_details(const OCSP_CERTID *certid, struct buffer *re
         * If HTTP caching is not important, or the request is greater than 255
         * bytes, the request SHOULD be submitted using POST.
         */
-       if (b_data(bin_request)+b_data(req_url) < 0xff) {
+       if (b_data(bin_request) + b_data(req_url) < 0xff) {
                struct buffer *b64buf = get_trash_chunk();
                char *ret = NULL;
                int base64_ret = 0;
@@ -664,10 +664,10 @@ int ssl_ocsp_create_request_details(const OCSP_CERTID *certid, struct buffer *re
 
                b64buf->data = base64_ret;
 
-               ret = encode_chunk((char*)b_stop(req_url), b_orig(req_url)+b_size(req_url), '%',
+               ret = encode_chunk((char*)b_stop(req_url), b_orig(req_url) + b_size(req_url), '%',
                                   query_encode_map, b64buf);
                if (ret && *ret == '\0') {
-                       req_url->data = ret-b_orig(req_url);
+                       req_url->data = ret - b_orig(req_url);
                }
        }
        else {