Просмотр исходного кода

http2: try fix crash on stream error.

Nick Peng 2 недель назад
Родитель
Сommit
bc991c61e7
1 измененных файлов с 0 добавлено и 11 удалено
  1. 0 11
      src/dns_client/client_http2.c

+ 0 - 11
src/dns_client/client_http2.c

@@ -116,17 +116,6 @@ static void _dns_client_release_stream_on_error(struct dns_server_info *server_i
 		_dns_client_conn_stream_put(stream);
 	}
 
-	/* Remove from query list and release reference */
-	if (!list_empty(&stream->query_list)) {
-		if (stream->query) {
-			pthread_mutex_lock(&stream->query->lock);
-			list_del_init(&stream->query_list);
-			pthread_mutex_unlock(&stream->query->lock);
-			stream->query = NULL;
-		}
-		_dns_client_conn_stream_put(stream);
-	}
-
 	pthread_mutex_unlock(&server_info->lock);
 
 	/* Release the initial reference from creation */