Author: brane
Date: Fri Jun  5 13:33:37 2026
New Revision: 1935031

Log:
Follow up to r1925997: Fix use of uninitialized pointer.

* buckets/bwtp_buckets.c
  (parse_status_line): Use the correct source string pointer to parse the
   channel number. Fixes the absolute silliness that happened in r1925997.
   Mea maxima culpa.

Modified:
   serf/trunk/buckets/bwtp_buckets.c

Modified: serf/trunk/buckets/bwtp_buckets.c
==============================================================================
--- serf/trunk/buckets/bwtp_buckets.c   Fri Jun  5 13:29:48 2026        
(r1935030)
+++ serf/trunk/buckets/bwtp_buckets.c   Fri Jun  5 13:33:37 2026        
(r1935031)
@@ -388,7 +388,7 @@ static apr_status_t parse_status_line(in
 
     /* The channel number is positive, so use the unsigned conversion. */
     SERF__POSITIVE_TO_INT(ctx->channel, apr_int64_t,
-                          apr_strtoi64(reason, &reason, 16));
+                          apr_strtoi64(ctx->linebuf.line + 3, &reason, 16));
     /* Skip leading spaces for the reason string. */
     if (apr_isspace(*reason)) {
         reason++;

Reply via email to