Module: sip-router Branch: andrei/tcp_tls_changes Commit: f509ccdc8c3212a7df9c4089c9dcde0d2c44eef5 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=f509ccdc...
Author: Andrei Pelinescu-Onciul andrei@iptel.org Committer: Andrei Pelinescu-Onciul andrei@iptel.org Date: Fri Jun 4 22:17:51 2010 +0200
tls: fix queue accounting
On queue flush the size of the queue was substracted twice.
---
modules/tls/sbufq.h | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/modules/tls/sbufq.h b/modules/tls/sbufq.h index 6b59751..cd29ecb 100644 --- a/modules/tls/sbufq.h +++ b/modules/tls/sbufq.h @@ -262,11 +262,9 @@ inline static int sbufq_flush(struct sbuffer_queue* q, int* flags, shm_free(b); q->offset=0; q->queued-=block_size; - ret+=block_size; }else{ q->offset+=n; q->queued-=n; - ret+=n; break; } }else{