]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Don't include space in reason phrase
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 15 Sep 2021 20:02:48 +0000 (15:02 -0500)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 15 Sep 2021 20:02:48 +0000 (15:02 -0500)
src/modules/rlm_rest/rest.c

index ecafb30415eb1273b7745dabf0123124c7c4ee32..ea79f7442aae4877d73b709502a2c2dc47401db6 100644 (file)
@@ -1355,6 +1355,7 @@ static size_t rest_response_header(void *in, size_t size, size_t nmemb, void *us
                 */
                RINDENT();
                if (*p == ' ') {
+                       p++;
                        q = memchr(p, '\r', (end - p));
                        if (!q) goto malformed;
                        RDEBUG2("Status : %i (%pV)", ctx->code, fr_box_strvalue_len(p, q - p));