From 41ddc6fbfda25356be73aa9050e9176544ca7117 Mon Sep 17 00:00:00 2001 From: Markus Makela Date: Mon, 27 Apr 2015 09:43:22 +0300 Subject: [PATCH] Switched over to gwbuf_clone_portion in modutils_get_complete_packets. Conflicts: server/core/modutil.c --- server/core/modutil.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/server/core/modutil.c b/server/core/modutil.c index 82890e334..c01c7623a 100644 --- a/server/core/modutil.c +++ b/server/core/modutil.c @@ -538,7 +538,7 @@ return_packetbuf: GWBUF* modutil_get_complete_packets(GWBUF** p_readbuf) { GWBUF *buff = NULL, *packet; - uint8_t *ptr,*end; + uint8_t *ptr; int len,blen,total = 0; if(p_readbuf == NULL || (*p_readbuf) == NULL || @@ -583,7 +583,6 @@ GWBUF* modutil_get_complete_packets(GWBUF** p_readbuf) "Error: Failed to partially clone buffer."); return NULL; } - gwbuf_consume(packet,total); return buff; } @@ -841,4 +840,4 @@ int modutil_count_statements(GWBUF* buffer) } return num; -} \ No newline at end of file +}