Switched over to gwbuf_clone_portion in modutils_get_complete_packets.
Conflicts: server/core/modutil.c
This commit is contained in:
parent
49907ffdea
commit
41ddc6fbfd
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user