]> granicus.if.org Git - curl/commitdiff
http2: use easy handle of stream for logging
authorsteini2000 <36340755+steini2000@users.noreply.github.com>
Mon, 14 May 2018 15:40:48 +0000 (17:40 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 14 May 2018 21:13:44 +0000 (23:13 +0200)
lib/http2.c

index ef93e6560019f652a1cac1736c74a6cde3217887..92cb3b62c865053d5f85b92b093cab2f8a5cce9f 100644 (file)
@@ -602,7 +602,7 @@ static int on_frame_recv(nghttp2_session *session, const nghttp2_frame *frame,
 
   stream = data_s->req.protop;
   if(!stream) {
-    H2BUGF(infof(conn->data, "No proto pointer for stream: %x\n",
+    H2BUGF(infof(data_s, "No proto pointer for stream: %x\n",
                  stream_id));
     return NGHTTP2_ERR_CALLBACK_FAILURE;
   }
@@ -680,7 +680,7 @@ static int on_frame_recv(nghttp2_session *session, const nghttp2_frame *frame,
     }
     break;
   default:
-    H2BUGF(infof(conn->data, "Got frame type %x for stream %u!\n",
+    H2BUGF(infof(data_s, "Got frame type %x for stream %u!\n",
                  frame->hd.type, stream_id));
     break;
   }