From 5b0a743e02b3cd4409d719a94744f595fc632044 Mon Sep 17 00:00:00 2001 From: Evgeny Date: Wed, 22 Apr 2026 20:35:05 +0300 Subject: [PATCH] 1 --- src/route_ping.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/route_ping.c b/src/route_ping.c index a6aaf04f..f2a9e6e5 100644 --- a/src/route_ping.c +++ b/src/route_ping.c @@ -171,6 +171,7 @@ int route_ping_send_req_addr(struct ROUTE_BGP* bgp, struct ETCP_CONN* to_conn, static void route_ping_series_finish(struct route_ping_series_ctx* ctx) { if (!ctx || !ctx->reply_conn) { u_free(ctx); + DEBUG_ERROR(DEBUG_CATEGORY_BGP, "zero args"); return; } @@ -226,6 +227,8 @@ static void route_ping_single_cb(int success, ctx->sum_rtt += rtt; } + DEBUG_INFO(DEBUG_CATEGORY_BGP, "ping response id=%zu", request_id); + /* Если ещё не все пакеты отправлены — сразу шлём следующий */ if (ctx->count_sent < ctx->count_total) { int ret = etcp_send_ping_to_socket(