diff options
author | Laurent Ghigonis <laurent@p1sec.com> | 2012-12-04 13:14:02 +0100 |
---|---|---|
committer | Laurent Ghigonis <laurent@p1sec.com> | 2012-12-04 13:14:02 +0100 |
commit | e7d23ca8d8bd0f15536248dd8fd7959ba5921237 (patch) | |
tree | 29dea38b2d774af1c4f2e38309db71432da5e9a4 /libglouglou | |
parent | fix print debug text (diff) | |
download | glouglou-e7d23ca8d8bd0f15536248dd8fd7959ba5921237.tar.xz glouglou-e7d23ca8d8bd0f15536248dd8fd7959ba5921237.zip |
correctly handle size on connection response in ggnet_conn_data()
Diffstat (limited to 'libglouglou')
-rw-r--r-- | libglouglou/libggnet.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libglouglou/libggnet.c b/libglouglou/libggnet.c index 548793b..2e7ff36 100644 --- a/libglouglou/libggnet.c +++ b/libglouglou/libggnet.c @@ -114,6 +114,10 @@ ggnet_conn_data(struct ggnet *net, struct ggnet_conn *c, int size, int response) { gg_log_debug("ggnet_conn_data"); + if (!response) + c->size = c->size + size; + else + c->size_response = c->size_response + size; c->lastseen = net->time; } |