Browse Source

tls: fix queue accounting

On queue flush the size of the queue was substracted twice.
Andrei Pelinescu-Onciul 15 years ago
parent
commit
f509ccdc8c
1 changed files with 0 additions and 2 deletions
  1. 0 2
      modules/tls/sbufq.h

+ 0 - 2
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{