Skip to content

Commit

Permalink
More proper use of skt_tcp_stat_text(): /hubstat may contain garbage.
Browse files Browse the repository at this point in the history
  • Loading branch information
rozhuk-im committed Apr 29, 2024
1 parent e414757 commit db58338
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/liblcb
Submodule liblcb updated 1 files
+9 −3 src/net/socket.c
7 changes: 4 additions & 3 deletions src/msd_lite_stat_text.c
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,11 @@ gen_hub_stat_text_entry_enum_cb(tpt_p tpt, str_hub_p str_hub, void *udata) {
(char*)strh_cli->user_agent
);
/* Add soscket TCP stat. */
skt_tcp_stat_text(strh_cli->skt, " ",
if (0 == skt_tcp_stat_text(strh_cli->skt, " ",
(char*)IO_BUF_FREE_GET(buf),
IO_BUF_FREE_SIZE(buf), &stm);
IO_BUF_USED_INC(buf, stm);
IO_BUF_FREE_SIZE(buf), &stm)) {
IO_BUF_USED_INC(buf, stm);
}
}
}
static void
Expand Down

0 comments on commit db58338

Please sign in to comment.