Switched over to gwbuf_clone_portion in modutils_get_complete_packets.

Conflicts:
	server/core/modutil.c
This commit is contained in:
Markus Makela 2015-04-27 09:43:22 +03:00
parent 49907ffdea
commit 41ddc6fbfd

View File

@ -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;
}
}