Module: kamailio
Branch: master
Commit: 64167de42026b3910a25cab0ccf7f602ae26ec3e
URL:
https://github.com/kamailio/kamailio/commit/64167de42026b3910a25cab0ccf7f60…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2019-03-13T14:29:28+01:00
tls: remove unnecessary fetch of ticks without storage
---
Modified: src/modules/tls/sbufq.h
---
Diff:
https://github.com/kamailio/kamailio/commit/64167de42026b3910a25cab0ccf7f60…
Patch:
https://github.com/kamailio/kamailio/commit/64167de42026b3910a25cab0ccf7f60…
---
diff --git a/src/modules/tls/sbufq.h b/src/modules/tls/sbufq.h
index 817ddfbbef..4f6bafa430 100644
--- a/src/modules/tls/sbufq.h
+++ b/src/modules/tls/sbufq.h
@@ -76,9 +76,7 @@ inline static int sbufq_add(struct sbuffer_queue* q, const void* data,
unsigned int last_free;
unsigned int b_size;
unsigned int crt_size;
-
- get_ticks_raw();
-
+
if (likely(q->last==0)) {
b_size=MAX_unsigned(min_buf_size, size);
b=shm_malloc(sizeof(*b)+b_size-sizeof(b->buf));
@@ -97,7 +95,7 @@ inline static int sbufq_add(struct sbuffer_queue* q, const void* data,
}else{
b=q->last;
}
-
+
while(size){
last_free=b->b_size-q->last_used;
if (last_free==0){