Fix debug assertion on packet length in blr_master.c

A debug assertion failed due to a NULL buffer but a non-zero packet
length. This was caused by a missing reset of the packet length after
freeing the buffers.
This commit is contained in:
Markus Makela
2016-11-04 10:04:21 +02:00
parent 8f6c1bdd5b
commit 87e94f6bc6

View File

@ -1068,6 +1068,7 @@ blr_handle_binlog_record(ROUTER_INSTANCE *router, GWBUF *pkt)
gwbuf_free(pkt);
pkt = NULL;
pkt_length = 0;
break;
}